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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/tabular-data/the-tr-element/rowIndex.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>HTMLTableRowElement.rowIndex</title>
3 <script src="../../../../../../resources/testharness.js"></script>
4 <script src="../../../../../../resources/testharnessreport.js"></script>
5 <div id="log"></div>
6 <script>
7 test(function() {
8 var row = document.createElement("table")
9 .appendChild(document.createElement("div"))
10 .appendChild(document.createElement("tr"));
11 assert_equals(row.rowIndex, -1);
12 });
13 test(function() {
14 var row = document.createElement("table")
15 .appendChild(document.createElement("thead"))
16 .appendChild(document.createElement("tr"));
17 assert_equals(row.rowIndex, 0);
18 });
19 test(function() {
20 var row = document.createElement("table")
21 .appendChild(document.createElement("tbody"))
22 .appendChild(document.createElement("tr"));
23 assert_equals(row.rowIndex, 0);
24 });
25 test(function() {
26 var row = document.createElement("table")
27 .appendChild(document.createElement("tfoot"))
28 .appendChild(document.createElement("tr"));
29 assert_equals(row.rowIndex, 0);
30 });
31 test(function() {
32 var row = document.createElement("table")
33 .appendChild(document.createElement("tr"));
34 assert_equals(row.rowIndex, 0);
35 });
36 test(function() {
37 var row = document.createElementNS("", "table")
38 .appendChild(document.createElement("thead"))
39 .appendChild(document.createElement("tr"));
40 assert_equals(row.rowIndex, -1);
41 });
42 test(function() {
43 var row = document.createElementNS("", "table")
44 .appendChild(document.createElement("tbody"))
45 .appendChild(document.createElement("tr"));
46 assert_equals(row.rowIndex, -1);
47 });
48 test(function() {
49 var row = document.createElementNS("", "table")
50 .appendChild(document.createElement("tfoot"))
51 .appendChild(document.createElement("tr"));
52 assert_equals(row.rowIndex, -1);
53 });
54 test(function() {
55 var row = document.createElementNS("", "table")
56 .appendChild(document.createElement("tr"));
57 assert_equals(row.rowIndex, -1);
58 });
59 test(function() {
60 var row = document.createElement("table")
61 .appendChild(document.createElementNS("", "thead"))
62 .appendChild(document.createElement("tr"));
63 assert_equals(row.rowIndex, -1);
64 });
65 test(function() {
66 var row = document.createElement("table")
67 .appendChild(document.createElementNS("", "tbody"))
68 .appendChild(document.createElement("tr"));
69 assert_equals(row.rowIndex, -1);
70 });
71 test(function() {
72 var row = document.createElement("table")
73 .appendChild(document.createElementNS("", "tfoot"))
74 .appendChild(document.createElement("tr"));
75 assert_equals(row.rowIndex, -1);
76 });
77 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698