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="../../resources/js-test.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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 shouldBe('textArea.value', '"ABC"'); | 169 shouldBe('textArea.value', '"ABC"'); |
170 | 170 |
171 // In the case maxlength='invalid' | 171 // In the case maxlength='invalid' |
172 createFocusedTextAreaWithMaxLength('invalid'); | 172 createFocusedTextAreaWithMaxLength('invalid'); |
173 textArea.value = ''; | 173 textArea.value = ''; |
174 document.execCommand('insertText', false, 'ABC'); | 174 document.execCommand('insertText', false, 'ABC'); |
175 shouldBe('textArea.value', '"ABC"'); | 175 shouldBe('textArea.value', '"ABC"'); |
176 </script> | 176 </script> |
177 </body> | 177 </body> |
178 </html> | 178 </html> |
OLD | NEW |