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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea-scrollbar.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 <html>
2 <head>
3 <script>
4 function test() {
5 var ta = document.getElementById('ta');
6 ta.focus();
7 // Send caret to bottom of textarea
8 ta.setSelectionRange(ta.value.length, ta.value.length);
9 document.execCommand("InsertText", false, '5');
10 document.execCommand("InsertText", false, '\n');
11 document.execCommand("InsertText", false, '6');
12 document.execCommand("InsertText", false, '\n');
13 document.execCommand("InsertText", false, '7');
14 document.execCommand("InsertText", false, '\n');
15 document.execCommand("InsertText", false, '8');
16 document.execCommand("InsertText", false, '\n');
17 }
18 </script>
19 </head>
20 <body onload="test()">
21 This tests that a scrollbar will appear when text overflows the textarea
22 <br>
23 <textarea rows=6 id="ta">
24 1
25 2
26 3
27 4
28 </textarea>
29 </body>
30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698