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="../../resources/js-test.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 HTMLTextAreaElement.maxLength behaviors.'); | 10 description('Tests for HTMLTextAreaElement.maxLength behaviors.'); |
11 | 11 |
12 var textArea = document.createElement('textarea'); | 12 var textArea = document.createElement('textarea'); |
13 document.body.appendChild(textArea); | 13 document.body.appendChild(textArea); |
14 | 14 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 shouldBe('textArea.value', '"ABC"'); | 156 shouldBe('textArea.value', '"ABC"'); |
157 | 157 |
158 // In the case maxlength='invalid' | 158 // In the case maxlength='invalid' |
159 createFocusedTextAreaWithMaxLength('invalid'); | 159 createFocusedTextAreaWithMaxLength('invalid'); |
160 textArea.value = ''; | 160 textArea.value = ''; |
161 document.execCommand('insertText', false, 'ABC'); | 161 document.execCommand('insertText', false, 'ABC'); |
162 shouldBe('textArea.value', '"ABC"'); | 162 shouldBe('textArea.value', '"ABC"'); |
163 </script> | 163 </script> |
164 </body> | 164 </body> |
165 </html> | 165 </html> |
OLD | NEW |