OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description('An excerpt from an early Acid3 test 66: test the ordering and creat
ion of rows'); | 8 description('An excerpt from an early Acid3 test 66: test the ordering and creat
ion of rows'); |
9 | 9 |
10 var table = document.createElement('table'); | 10 var table = document.createElement('table'); |
11 var rows = [ | 11 var rows = [ |
12 document.createElement('tr'), // 0: ends up first child of the tfoot | 12 document.createElement('tr'), // 0: ends up first child of the tfoot |
13 document.createElement('tr'), // 1: goes at the end of the table | 13 document.createElement('tr'), // 1: goes at the end of the table |
14 document.createElement('tr'), // 2: becomes second child of thead | 14 document.createElement('tr'), // 2: becomes second child of thead |
(...skipping 24 matching lines...) Expand all Loading... |
39 shouldBe("table.tFoot.childNodes[0]", "table.getElementsByTagName('tr')[3]"); | 39 shouldBe("table.tFoot.childNodes[0]", "table.getElementsByTagName('tr')[3]"); |
40 shouldBe("rows[0]", "table.getElementsByTagName('tr')[3]"); | 40 shouldBe("rows[0]", "table.getElementsByTagName('tr')[3]"); |
41 shouldBe("table.tFoot.childNodes[1]", "table.getElementsByTagName('tr')[4]"); | 41 shouldBe("table.tFoot.childNodes[1]", "table.getElementsByTagName('tr')[4]"); |
42 shouldBe("rows[6]", "table.getElementsByTagName('tr')[4]"); | 42 shouldBe("rows[6]", "table.getElementsByTagName('tr')[4]"); |
43 shouldBe("table.childNodes[2]", "table.getElementsByTagName('tr')[5]"); | 43 shouldBe("table.childNodes[2]", "table.getElementsByTagName('tr')[5]"); |
44 shouldBe("rows[1]", "table.getElementsByTagName('tr')[5]"); | 44 shouldBe("rows[1]", "table.getElementsByTagName('tr')[5]"); |
45 shouldBe("table.tBodies.length", "0"); | 45 shouldBe("table.tBodies.length", "0"); |
46 </script> | 46 </script> |
47 </body> | 47 </body> |
48 </html> | 48 </html> |
OLD | NEW |