| 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 | 9 |
| 10 <input type="text" size="5" value="12345" maxlength="4" id="input1"> | 10 <input type="text" size="5" value="12345" maxlength="4" id="input1"> |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 debug('set maxlength attribute that is smaller than initial value'); | 82 debug('set maxlength attribute that is smaller than initial value'); |
| 83 document.getElementById("h").setAttribute('maxlength', 4); | 83 document.getElementById("h").setAttribute('maxlength', 4); |
| 84 shouldBe('domValueOf("h")', '"12" + fancyX + "45"'); | 84 shouldBe('domValueOf("h")', '"12" + fancyX + "45"'); |
| 85 shouldBe('visibleValueOf("h")', '"12" + fancyX + "45"'); | 85 shouldBe('visibleValueOf("h")', '"12" + fancyX + "45"'); |
| 86 | 86 |
| 87 debug('set maxLength property that is smaller than initial value'); | 87 debug('set maxLength property that is smaller than initial value'); |
| 88 document.getElementById("g").maxLength = 4; | 88 document.getElementById("g").maxLength = 4; |
| 89 shouldBe('domValueOf("g")', '"12" + fancyX + "45"'); | 89 shouldBe('domValueOf("g")', '"12" + fancyX + "45"'); |
| 90 shouldBe('visibleValueOf("g")', '"12" + fancyX + "45"'); | 90 shouldBe('visibleValueOf("g")', '"12" + fancyX + "45"'); |
| 91 </script> | 91 </script> |
| 92 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 93 </body> | 92 </body> |
| 94 </html> | 93 </html> |
| OLD | NEW |