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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/textarea/drag-out-of-textarea.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
1 <script> 1 <script>
2 2
3 function runTest() { 3 function runTest() {
4 var textarea = document.getElementById("textarea"); 4 var textarea = document.getElementById("textarea");
5 var tx = textarea.offsetLeft + textarea.offsetWidth / 2; 5 var tx = textarea.offsetLeft + textarea.offsetWidth / 2;
6 var ty = textarea.offsetTop + 4; 6 var ty = textarea.offsetTop + 4;
7 7
8 var input = document.getElementById("input"); 8 var input = document.getElementById("input");
9 var ix = input.offsetLeft + input.offsetWidth / 2; 9 var ix = input.offsetLeft + input.offsetWidth / 2;
10 var iy = input.offsetTop + input.offsetHeight / 2; 10 var iy = input.offsetTop + input.offsetHeight / 2;
(...skipping 28 matching lines...) Expand all
39 <body onload="runTest()"> 39 <body onload="runTest()">
40 40
41 <p>This tests dragging text from a textarea element to an input element.</p> 41 <p>This tests dragging text from a textarea element to an input element.</p>
42 <p>When the test is run, the follow textarea should be empty:</p> 42 <p>When the test is run, the follow textarea should be empty:</p>
43 <p><textarea id="textarea" cols="50" rows="10">drag this text into the text fiel d above</textarea></p> 43 <p><textarea id="textarea" cols="50" rows="10">drag this text into the text fiel d above</textarea></p>
44 <p>And the following input should have text in it:</p> 44 <p>And the following input should have text in it:</p>
45 <p><input id="input" type="text" size="50"></p> 45 <p><input id="input" type="text" size="50"></p>
46 <p id="result">If the test has completed this sentence should be replaced by a s uccess message.</p> 46 <p id="result">If the test has completed this sentence should be replaced by a s uccess message.</p>
47 47
48 </body> 48 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698