mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:12:45 +00:00 
			
		
		
		
	 587cfa7739
			
		
	
	
		587cfa7739
		
	
	
	
	
		
			
			The invariants for these property getters are supposed to be checked by the has_entries_and_events_disabled AO, but we don't have all the plumbing hooked up between Navigables and Navigation yet. Add a test to make sure that these methods don't assert when calling them on a fresh page.
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			599 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			599 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <script src="../include.js"></script>
 | |
| <script>
 | |
|     test(() => {
 | |
|         let n = window.navigation;
 | |
| 
 | |
|         // FIXME: Once we set up the interaction between Navigables and Navigation,
 | |
|         //        These two should become 1 and [object NavigationHistoryEntry], respectively
 | |
|         println(`entries is empty: ${n.entries().length == 0}`);
 | |
|         println(`currentEntry is null: ${n.currentEntry == null}`);
 | |
| 
 | |
|         println(`transition is null: ${n.transition == null}`);
 | |
|         println(`canGoBack: ${n.canGoBack}`);
 | |
|         println(`canGoForward: ${n.canGoForward}`);       
 | |
|     });
 | |
| </script>
 |