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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea-no-scroll-on-blur.html

Issue 1522803002: Move textarea-related tests to fast/forms/textarea/, part 1. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@color-uaf
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 if (window.testRunner)
6 testRunner.dumpAsText();
7
8 var ta = document.getElementById('ta');
9
10 // Send caret to bottom of textarea
11 ta.focus();
12 ta.setSelectionRange(ta.value.length, ta.value.length);
13 ta.blur();
14
15 ta.focus();
16 ta.blur();
17 if (ta.scrollTop != 0)
18 document.getElementById('res').innerHTML = "Test Passed";
19 }
20 </script>
21 </head>
22 <body onload="test()">
23 This tests that we don't scroll back to the top when leaving a textarea
24 <br>
25 <textarea id="ta">
26 1
27 2
28 3
29 4
30 5
31 </textarea>
32 <div id="res">Test Failed</div>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698