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

Side by Side Diff: LayoutTests/fast/forms/reportValidity-003.html

Issue 660783002: Implement reportValidity() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Apply keishi's comments + pull 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
tkent 2014/10/22 01:14:15 The test name should be reportValidity-form-valid.
Bartek Nowierski 2014/10/22 04:56:43 Done.
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <form method="get" id="happy_form"> 8 <form method="get" id="happy_form">
9 <fieldset name="victim"></fieldset> 9 <fieldset name="victim"></fieldset>
10 <input name="victim" type="text" value="lorem ipsum"/> 10 <input name="victim" type="text" value="lorem ipsum"/>
11 <button name="victim">lorem ipsum</button> 11 <button name="victim">lorem ipsum</button>
12 <select name="victim"></select> 12 <select name="victim"></select>
13 <textarea name="victim"></textarea> 13 <textarea name="victim"></textarea>
14 </form> 14 </form>
15 <div id="console"></div> 15 <div id="console"></div>
16 <script> 16 <script>
17 description("This test checks if checkValidity() returns correctly a true (meani ng no error) result on form element."); 17 description("This test checks if reportValidity() returns correctly a true (mean ing no error) result on form element.");
18 18
19 f = document.getElementById("happy_form"); 19 f = document.getElementById("happy_form");
20 shouldBe("f.checkValidity()", "true"); 20 shouldBe("f.reportValidity()", "true");
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698