| Index: third_party/WebKit/LayoutTests/fast/dom/HTMLTableElement/tBodies.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLTableElement/tBodies.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLTableElement/tBodies.html
|
| index fb4dfdfb452cf1368f32b4c5e46f331d43e43db9..63b26e5023e64e452e3127f12e04fb7ecaf53e91 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/dom/HTMLTableElement/tBodies.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLTableElement/tBodies.html
|
| @@ -4,6 +4,41 @@
|
| <script src="../../../resources/js-test.js"></script>
|
| </head>
|
| <body>
|
| -<script src="script-tests/tBodies.js"></script>
|
| +<script>
|
| +description('Test behavior of the HTMLTableElement tBodies attribute in cases where there is unusual nesting.');
|
| +
|
| +function checkTBodyNesting(tag)
|
| +{
|
| + var table = document.createElement("table");
|
| + var container = document.createElement(tag);
|
| + var tbody = document.createElement("tbody");
|
| + table.appendChild(container);
|
| + container.appendChild(tbody);
|
| + return table.tBodies.length;
|
| +}
|
| +
|
| +var tags = [
|
| + "col",
|
| + "colgroup",
|
| + "div",
|
| + "form",
|
| + "script",
|
| + "table",
|
| + "td",
|
| + "tfoot",
|
| + "th",
|
| + "thead",
|
| + "tr",
|
| +];
|
| +
|
| +for (i = 0; i < tags.length; ++i)
|
| + shouldBe('checkTBodyNesting("' + tags[i] + '")', '0');
|
| +
|
| +debug('');
|
| +
|
| +shouldBe('checkTBodyNesting("tbody")', '1');
|
| +
|
| +debug('');
|
| +</script>
|
| </body>
|
| </html>
|
|
|