Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/WebKit/LayoutTests/html/tabular_data/early-acid3-66-excerpt.html

Issue 2785963002: Move tests for table elements to LayoutTests/html/tabular_data/. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698