OLD | NEW |
---|---|
(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> | |
OLD | NEW |