| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script> | |
| 5 function test() | |
| 6 { | |
| 7 if (window.testRunner) | |
| 8 testRunner.dumpAsText(); | |
| 9 | |
| 10 ta = document.getElementById('ta'); | |
| 11 ta.disabled = false; | |
| 12 ta.focus(); | |
| 13 if (window.eventSender) { | |
| 14 eventSender.keyDown('a', []); | |
| 15 var result = ta.value; | |
| 16 if (result == "a") | |
| 17 document.write("<pre>SUCCESS</pre>"); | |
| 18 else | |
| 19 document.write("<pre>FAIL, result was '" + result + "'.</pre>"); | |
| 20 } | |
| 21 } | |
| 22 </script> | |
| 23 </head> | |
| 24 <body onload="test();"> | |
| 25 <p>Tests that toggling disabled state in a textarea leaves the textarea typeable
. | |
| 26 To Test manually, load this page and type in the textarea. If you can type, then | |
| 27 the test succeeded.<p> | |
| 28 <textarea id="ta" disabled="disabled"></textarea> | |
| 29 </body> | |
| 30 </html> | |
| OLD | NEW |