Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/empty-textarea-toggle-disabled.html

Issue 1524663002: Move textarea-related tests to fast/forms/textarea/, part 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698