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 <textarea> elements.'); | 10 description('Tests for tooLong flag with <textarea> elements.'); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 debug(''); | 85 debug(''); |
86 debug('A value set by a child node change doesn\'t make tooLong true.'); | 86 debug('A value set by a child node change doesn\'t make tooLong true.'); |
87 parent.innerHTML = '<textarea maxlength=2>abc</textarea>'; | 87 parent.innerHTML = '<textarea maxlength=2>abc</textarea>'; |
88 textarea = parent.firstChild; | 88 textarea = parent.firstChild; |
89 shouldBeFalse('textarea.validity.tooLong'); | 89 shouldBeFalse('textarea.validity.tooLong'); |
90 parent.firstChild.innerHTML = 'abcdef'; | 90 parent.firstChild.innerHTML = 'abcdef'; |
91 shouldBe('textarea.value', '"abcdef"'); | 91 shouldBe('textarea.value', '"abcdef"'); |
92 shouldBeFalse('textarea.validity.tooLong'); | 92 shouldBeFalse('textarea.validity.tooLong'); |
93 </script> | 93 </script> |
94 <script src="../../fast/js/resources/js-test-post.js"></script> | |
95 </body> | 94 </body> |
96 </html> | 95 </html> |
OLD | NEW |