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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLTableElement/script-tests/tBodies.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 HTMLTableElement tBodies attribute in cases wh ere there is unusual nesting.');
2
3 function checkTBodyNesting(tag)
4 {
5 var table = document.createElement("table");
6 var container = document.createElement(tag);
7 var tbody = document.createElement("tbody");
8 table.appendChild(container);
9 container.appendChild(tbody);
10 return table.tBodies.length;
11 }
12
13 var tags = [
14 "col",
15 "colgroup",
16 "div",
17 "form",
18 "script",
19 "table",
20 "td",
21 "tfoot",
22 "th",
23 "thead",
24 "tr",
25 ];
26
27 for (i = 0; i < tags.length; ++i)
28 shouldBe('checkTBodyNesting("' + tags[i] + '")', '0');
29
30 debug('');
31
32 shouldBe('checkTBodyNesting("tbody")', '1');
33
34 debug('');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698