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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLTableSectionElement/script-tests/rows.js

Issue 2667393002: Stop using script-tests in fast/dom/. (Closed)
Patch Set: . Created 3 years, 10 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
(Empty)
1 description('Test behavior of the HTMLTableSectionElement rows attribute in case s where there is unusual nesting.');
2
3 function checkRowNesting(tag)
4 {
5 var body = document.createElement("tbody");
6 var container = document.createElement(tag);
7 var row = document.createElement("tr");
8 body.appendChild(container);
9 container.appendChild(row);
10 return body.rows.length;
11 }
12
13 var sectionTags = [
14 "tbody",
15 "tfoot",
16 "thead",
17 ];
18
19 var otherTags = [
20 "col",
21 "colgroup",
22 "div",
23 "form",
24 "script",
25 "table",
26 "td",
27 "th",
28 ];
29
30 for (i = 0; i < otherTags.length; ++i)
31 shouldBe('checkRowNesting("' + otherTags[i] + '")', '0');
32
33 debug('');
34
35 for (i = 0; i < sectionTags.length; ++i)
36 shouldBe('checkRowNesting("' + sectionTags[i] + '")', '0');
37
38 debug('');
39
40 shouldBe('checkRowNesting("tr")', '1');
41
42 debug('');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698