Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / checkValidity-select-form.html
blob83377692ca92f8842a4eabd83fe1e6527435390f
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();
18 window.onload = function() {
19 select.value = null;
20 select.focus();
21 if (window.eventSender)
22 eventSender.keyDown('a');
24 </script>
25 </body>
26 </html>