Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLTableSectionElement / insertRow-default-argument.html
blob1a1350945a590ad59d9bb2dd25b797cd9e4e0bf0
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="help" href="http://www.whatwg.org/specs/web-apps/current-work/multipage/tabular-data.html#the-tbody-element">
5 <script src="../../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Tests that HTMLTableSectionElement.insertRow()'s default argument is -1.");
11 var tb = document.createElement("tbody");
12 shouldBe("tb.__proto__", "HTMLTableSectionElement.prototype");
14 tb.insertRow().innerHTML = "1"; // Should append.
15 tb.insertRow().innerHTML = "2"; // Should append.
16 tb.insertRow(-1).innerHTML = "3"; // Should append.
17 tb.insertRow(0).innerHTML = "0"; // Should prepend.
19 var rows = tb.rows;
20 shouldBe("rows.length", "4");
21 shouldBeEqualToString("rows[0].innerHTML", "0");
22 shouldBeEqualToString("rows[1].innerHTML", "1");
23 shouldBeEqualToString("rows[2].innerHTML", "2");
24 shouldBeEqualToString("rows[3].innerHTML", "3");
25 </script>
26 </body>
27 </html>