Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / empty-textarea-toggle-disabled.html
blob6d3a70a97974e5b4d93bc2f1ef86cac29402ea8d
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 function test()
7 if (window.testRunner)
8 testRunner.dumpAsText();
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>");
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>