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

Side by Side Diff: LayoutTests/fast/forms/button-in-forms-collection.html

Issue 561813003: Prepare blink to unify definitions of load completion (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add document.close() to scroll-left-while-loading.html Created 6 years, 2 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 | Annotate | Revision Log
OLDNEW
1 <!-- Based on testcase from KDE bug #110629, heavily modified --> 1 <!-- Based on testcase from KDE bug #110629, heavily modified -->
2 <html> <head> 2 <html> <head>
3 3
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script> 5 <script>
6 if (window.testRunner) 6 if (window.testRunner)
7 testRunner.dumpAsText(); 7 testRunner.dumpAsText();
8
9 function testPassed(msg)
10 {
11 document.write("<b><font color=green>PASS</font></b> " + msg + "<br>");
12 }
13
14 function testFailed(msg)
15 {
16 document.write("<b><font color=red>FAIL</font></b> " + msg + "<br>");
17 }
18
19 function debug(a)
20 {
21 document.write("<p> " + a + "</p>");
22 }
23 </script> 8 </script>
24 </head> 9 </head>
25 10
26 <body> 11 <body>
27 <p>The following tests for regression against <a href="https://bugs.webkit.org/s how_bug.cgi?id=4405">4405: &lt;button&gt; not listed in form collections.</a> Yo u should see a series of lines starting with PASS.</p> 12 <p>The following tests for regression against <a href="https://bugs.webkit.org/s how_bug.cgi?id=4405">4405: &lt;button&gt; not listed in form collections.</a> Yo u should see a series of lines starting with PASS.</p>
28 13
29 <form name="test"> 14 <form name="test">
30 <input type="button" name="foo" id="foo" value="Button1"> 15 <input type="button" name="foo" id="foo" value="Button1">
31 <button type="button" name="bla" id="bla" value="Button2">Button2</button> 16 <button type="button" name="bla" id="bla" value="Button2">Button2</button>
32 </form> 17 </form>
33 18
34 <br> 19 <br>
35 <script> 20 <script>
36 shouldBe("document.test.elements.length", "2"); 21 shouldBe("document.test.elements.length", "2");
37 shouldBe("document.test.elements[0].name", '"foo"'); 22 shouldBe("document.test.elements[0].name", '"foo"');
38 shouldBe("document.test.elements[1].name", '"bla"'); 23 shouldBe("document.test.elements[1].name", '"bla"');
39 shouldBe("document.test.foo.value", '"Button1"'); 24 shouldBe("document.test.foo.value", '"Button1"');
40 shouldBe("document.test.bla.value", '"Button2"'); 25 shouldBe("document.test.bla.value", '"Button2"');
41 </script> 26 </script>
42 27
43 </body> 28 </body>
44 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698