Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLTableRowElement / insertCell-default-argument.html
blob6809483db6a2a27392f3e8ba97c20c7e199e2205
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-tr-element">
5 <script src="../../../resources/js-test.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Tests that HTMLTableRowElement.insertCell()'s default argument is -1.");
11 var tr = document.createElement("tr");
12 shouldBe("tr.__proto__", "HTMLTableRowElement.prototype");
14 tr.insertCell().innerHTML = "1"; // Should append.
15 tr.insertCell().innerHTML = "2"; // Should append.
16 tr.insertCell(-1).innerHTML = "3"; // Should append.
17 tr.insertCell(0).innerHTML = "0"; // Should prepend.
19 var cells = tr.cells;
20 shouldBe("cells.length", "4");
21 shouldBeEqualToString("cells[0].innerHTML", "0");
22 shouldBeEqualToString("cells[1].innerHTML", "1");
23 shouldBeEqualToString("cells[2].innerHTML", "2");
24 shouldBeEqualToString("cells[3].innerHTML", "3");
25 </script>
26 </body>
27 </html>