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.minLength behaviors.'); | 10 description('Tests for HTMLTextAreaElement.minLength 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 shouldBe('textArea.getAttribute("minlength")', '"6"'); // Not changed | 46 shouldBe('textArea.getAttribute("minlength")', '"6"'); // Not changed |
47 shouldBe('textArea.minLength = 10; textArea.getAttribute("minlength")', '"10"'); | 47 shouldBe('textArea.minLength = 10; textArea.getAttribute("minlength")', '"10"'); |
48 | 48 |
49 textArea.minLength = null; | 49 textArea.minLength = null; |
50 shouldBe('textArea.minLength', '0'); | 50 shouldBe('textArea.minLength', '0'); |
51 shouldBe('textArea.getAttribute("minlength")', '"0"'); | 51 shouldBe('textArea.getAttribute("minlength")', '"0"'); |
52 | 52 |
53 </script> | 53 </script> |
54 </body> | 54 </body> |
55 </html> | 55 </html> |
OLD | NEW |