Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / button-in-forms-collection.html
blob0bccbcc5aff58137c0636921cc28e2972d4255b1
1 <!-- Based on testcase from KDE bug #110629, heavily modified -->
2 <html> <head>
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 if (window.testRunner)
7 testRunner.dumpAsText();
8 </script>
9 </head>
11 <body>
12 <p>The following tests for regression against <a href="https://bugs.webkit.org/show_bug.cgi?id=4405">4405: &lt;button&gt; not listed in form collections.</a> You should see a series of lines starting with PASS.</p>
14 <form name="test">
15 <input type="button" name="foo" id="foo" value="Button1">
16 <button type="button" name="bla" id="bla" value="Button2">Button2</button>
17 </form>
19 <br>
20 <script>
21 shouldBe("document.test.elements.length", "2");
22 shouldBe("document.test.elements[0].name", '"foo"');
23 shouldBe("document.test.elements[1].name", '"bla"');
24 shouldBe("document.test.foo.value", '"Button1"');
25 shouldBe("document.test.bla.value", '"Button2"');
26 </script>
28 </body>
29 </html>