| 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="../js/resources/js-test-pre.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 <input id="input-empty" name="victim" type="text" required/> | 9 <input id="input-empty" name="victim" type="text" required/> |
| 10 <input id="input-pattern-mismatch" name="victim" type="text" pattern="Lorem ipsu
m" value="Loremipsum"/> | 10 <input id="input-pattern-mismatch" name="victim" type="text" pattern="Lorem ipsu
m" value="Loremipsum"/> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 description("This test checks if checkValidity() returns correctly a false (
meaning error) result on invalid elements, and returns a true result on a blank
but valid elements. Blank but non-placeholder label options are valid."); | 31 description("This test checks if checkValidity() returns correctly a false (
meaning error) result on invalid elements, and returns a true result on a blank
but valid elements. Blank but non-placeholder label options are valid."); |
| 32 | 32 |
| 33 shouldBeFalse('checkValidityFor("input-empty")'); | 33 shouldBeFalse('checkValidityFor("input-empty")'); |
| 34 shouldBeFalse('checkValidityFor("input-pattern-mismatch")'); | 34 shouldBeFalse('checkValidityFor("input-pattern-mismatch")'); |
| 35 shouldBeFalse('checkValidityFor("textarea")'); | 35 shouldBeFalse('checkValidityFor("textarea")'); |
| 36 shouldBeTrue('checkValidityFor("select-no-explicit-value")'); | 36 shouldBeTrue('checkValidityFor("select-no-explicit-value")'); |
| 37 shouldBeFalse('checkValidityFor("select-placeholder")'); | 37 shouldBeFalse('checkValidityFor("select-placeholder")'); |
| 38 shouldBeTrue('checkValidityFor("select-non-placeholder")'); | 38 shouldBeTrue('checkValidityFor("select-non-placeholder")'); |
| 39 </script> | 39 </script> |
| 40 <script src="../js/resources/js-test-post.js"></script> | |
| 41 </body> | 40 </body> |
| 42 </html> | 41 </html> |
| OLD | NEW |