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

Side by Side Diff: third_party/WebKit/LayoutTests/html/tabular_data/early-acid3-65-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 65: construct a table, and see if the table is as expected'); 8 description('An excerpt from an early Acid3 test 65: construct a table, and see if the table is as expected');
9 9
10 var table = document.createElement('table'); 10 var table = document.createElement('table');
11 table.appendChild(document.createElement('tbody')); 11 table.appendChild(document.createElement('tbody'));
12 var tr1 = document.createElement('tr'); 12 var tr1 = document.createElement('tr');
13 table.appendChild(tr1); 13 table.appendChild(tr1);
14 table.appendChild(document.createElement('caption')); 14 table.appendChild(document.createElement('caption'));
(...skipping 22 matching lines...) Expand all
37 // or: <table><caption/><thead/><tfoot/><tbody><tr/></tbody> 37 // or: <table><caption/><thead/><tfoot/><tbody><tr/></tbody>
38 table.tHead.appendChild(tr1); 38 table.tHead.appendChild(tr1);
39 // either: <table><caption/><thead><tr/></thead><tbody><tr/></tbody><tfoot/> 39 // either: <table><caption/><thead><tr/></thead><tbody><tr/></tbody><tfoot/>
40 // or: <table><caption/><thead><tr/></thead><tfoot/><tbody><tr/></tbody> 40 // or: <table><caption/><thead><tr/></thead><tfoot/><tbody><tr/></tbody>
41 shouldBe("table.rows[0]", "table.tHead.firstChild"); 41 shouldBe("table.rows[0]", "table.tHead.firstChild");
42 shouldBe("table.rows.length", "2"); 42 shouldBe("table.rows.length", "2");
43 shouldBe("table.rows[1]", "table.tBodies[0].firstChild"); 43 shouldBe("table.rows[1]", "table.tBodies[0].firstChild");
44 </script> 44 </script>
45 </body> 45 </body>
46 </html> 46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698