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

Side by Side Diff: LayoutTests/editing/execCommand/delete-no-scroll.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <p>Matching IE, execCommand("Delete") should not scroll the page to make selecti on visible.</p>
2 <div contenteditable>ab</div>
3 <div style="height:10000"></div>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
8 }
9
10 var textDiv = document.getElementsByTagName('div')[0];
11 var text = textDiv.firstChild;
12 if (window.getSelection)
13 window.getSelection().setBaseAndExtent(text, 1, text, 2);
14 else {
15 var range = document.body.createTextRange();
16 range.moveToElementText(textDiv);
17 range.moveStart("character", 1);
18 range.select();
19 }
20
21 setTimeout("finishTest()", 0);
22
23 function finishTest() {
24 window.scrollTo(0, 1000);
25 document.execCommand("Delete");
26
27 var result = (document.body.scrollTop == 1000) ? "SUCCESS" : "FAILURE";
28 if (window.testRunner) {
29 testRunner.notifyDone();
30 document.write(result);
31 } else
32 alert(result);
33 }
34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698