OLD | NEW |
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="../js/resources/js-test-pre.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="sad_form"> | 8 <form method="get" id="sad_form"> |
9 <fieldset name="victim"></fieldset> | 9 <fieldset name="victim"></fieldset> |
10 <input name="victim" type="text" value="invalid" pattern="something"/> | 10 <input name="victim" type="text" value="invalid" pattern="something"/> |
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 false (mean
ing there's an invalid element) result on form element."); | 17 description("This test checks if checkValidity() returns correctly a false (mean
ing there's an invalid element) result on form element."); |
18 | 18 |
19 f = document.getElementById("sad_form"); | 19 f = document.getElementById("sad_form"); |
20 shouldBe("f.checkValidity()", "false"); | 20 shouldBe("f.checkValidity()", "false"); |
21 </script> | 21 </script> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |