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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/checkValidity-001.html

Issue 2201293002: FIELDSET element should not check inner controls in checkValidity(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/checkValidity-001-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
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"> 8 <form method="get">
9 <fieldset name="victim"></fieldset> 9 <fieldset name="victim"></fieldset>
10 <fieldset name="victim"><input required></fieldset>
10 <input name="victim" type="text" value="lorem ipsum"/> 11 <input name="victim" type="text" value="lorem ipsum"/>
11 <button name="victim">lorem ipsum</button> 12 <button name="victim">lorem ipsum</button>
12 <select name="victim"></select> 13 <select name="victim"></select>
13 <textarea name="victim"></textarea> 14 <textarea name="victim"></textarea>
14 <output name="victim"></output> 15 <output name="victim"></output>
15 <object name="victim"></object> 16 <object name="victim"></object>
16 <keygen name="victim"></keygen> 17 <keygen name="victim"></keygen>
17 </form> 18 </form>
18 <div id="console"></div> 19 <div id="console"></div>
19 <script> 20 <script>
20 description("This test checks if checkValidity() returns correctly a true (meani ng no error) result."); 21 description("This test checks if checkValidity() returns correctly a true (meani ng no error) result.");
21 22
22 shouldBe('document.getElementsByTagName("fieldset")[0].checkValidity()', 'true') ; 23 shouldBe('document.getElementsByTagName("fieldset")[0].checkValidity()', 'true') ;
23 shouldBe('document.getElementsByTagName("input")[0].checkValidity()', 'true'); 24 shouldBe('document.getElementsByTagName("fieldset")[1].checkValidity()', 'true') ;
25 shouldBe('document.getElementsByTagName("input")[1].checkValidity()', 'true');
24 shouldBe('document.getElementsByTagName("button")[0].checkValidity()', 'true'); 26 shouldBe('document.getElementsByTagName("button")[0].checkValidity()', 'true');
25 shouldBe('document.getElementsByTagName("select")[0].checkValidity()', 'true'); 27 shouldBe('document.getElementsByTagName("select")[0].checkValidity()', 'true');
26 shouldBe('document.getElementsByTagName("textarea")[0].checkValidity()', 'true') ; 28 shouldBe('document.getElementsByTagName("textarea")[0].checkValidity()', 'true') ;
27 shouldBe('document.getElementsByTagName("output")[0].checkValidity()', 'true'); 29 shouldBe('document.getElementsByTagName("output")[0].checkValidity()', 'true');
28 shouldBe('document.getElementsByTagName("object")[0].checkValidity()', 'true'); 30 shouldBe('document.getElementsByTagName("object")[0].checkValidity()', 'true');
29 shouldBe('document.getElementsByTagName("keygen")[0].checkValidity()', 'true'); 31 shouldBe('document.getElementsByTagName("keygen")[0].checkValidity()', 'true');
30 </script> 32 </script>
31 </body> 33 </body>
32 </html> 34 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/checkValidity-001-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698