mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:02:45 +00:00 
			
		
		
		
	 6cee028ecc
			
		
	
	
		6cee028ecc
		
	
	
	
	
		
			
			This test was written before we had the facility to write text tests - port this test to a text test so that we test against it in CI.
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			967 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			967 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <html>
 | |
| <form><table><thead><tr><td></td></tr></thead></table></form>
 | |
| <script src="include.js"></script>
 | |
| <script>
 | |
|   test(() => {
 | |
|       function testElement(expr) {
 | |
|         let a = eval(expr);
 | |
|         let b = eval(expr);
 | |
|         println(`${expr} ${(a === b) ? "pass" : "fail"}`);
 | |
|       }
 | |
| 
 | |
|       let table = document.querySelector("table")
 | |
|       let tr = document.querySelector("tr")
 | |
|       let form = document.querySelector("form")
 | |
|       let thead = document.querySelector("thead")
 | |
| 
 | |
|       testElement("table.tBodies")
 | |
|       testElement("table.rows")
 | |
|       testElement("thead.rows")
 | |
|       testElement("tr.cells")
 | |
|       testElement("form.elements")
 | |
| 
 | |
|       testElement("document.applets")
 | |
|       testElement("document.anchors")
 | |
|       testElement("document.images")
 | |
|       testElement("document.embeds")
 | |
|       testElement("document.plugins")
 | |
|       testElement("document.links")
 | |
|       testElement("document.forms")
 | |
|       testElement("document.scripts")
 | |
|   });
 | |
| </script>
 | |
| </html>
 |