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

Side by Side Diff: LayoutTests/fast/forms/checkValidity-select-form.html

Issue 246883004: Fix checkValidity for form containing menulist select (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: incorporated review comments Created 6 years, 8 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 | LayoutTests/fast/forms/checkValidity-select-form-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
(Empty)
1 <html>
2 <body>
3 <script src="../../resources/js-test.js"></script>
4 <form action="">
5 <select required="">
6 <option>abc</option>
7 </select>
8 </form>
9 <script>
10 description("This test checks if checkValidity() returns correctly a true result on selecting a valid element.");
11 jsTestIsAsync = true;
12 var form = document.querySelector('form');
13 var select = document.querySelector('select');
14 form.onchange = function() {
15 shouldBeTrue('form.checkValidity()');
16 finishJSTest();
17 };
18 window.onload = function() {
19 select.value = null;
20 select.focus();
21 if (window.eventSender)
22 eventSender.keyDown('a');
23 };
24 </script>
25 </body>
26 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/checkValidity-select-form-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698