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="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/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 <div id="console"></div> | 8 <div id="console"></div> |
9 <script> | 9 <script> |
10 description('Tests for tooLong flag with <input> elements.'); | 10 description('Tests for tooLong flag with <input> elements.'); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 debug('Change the type with a too long value'); | 69 debug('Change the type with a too long value'); |
70 input.maxLength = 3; | 70 input.maxLength = 3; |
71 input.value = 'abcde'; | 71 input.value = 'abcde'; |
72 input.type = 'search'; | 72 input.type = 'search'; |
73 input.focus(); | 73 input.focus(); |
74 input.setSelectionRange(5, 5); | 74 input.setSelectionRange(5, 5); |
75 document.execCommand('delete'); | 75 document.execCommand('delete'); |
76 shouldBeTrue('input.validity.tooLong'); | 76 shouldBeTrue('input.validity.tooLong'); |
77 shouldBeFalse('input.type = "number"; input.validity.tooLong'); | 77 shouldBeFalse('input.type = "number"; input.validity.tooLong'); |
78 </script> | 78 </script> |
79 <script src="../../fast/js/resources/js-test-post.js"></script> | |
80 </body> | 79 </body> |
81 </html> | 80 </html> |
OLD | NEW |