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

Unified 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, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/editing/execCommand/delete-no-scroll.html
diff --git a/LayoutTests/editing/execCommand/delete-no-scroll.html b/LayoutTests/editing/execCommand/delete-no-scroll.html
deleted file mode 100644
index 456ba4abeedec33016f66501c81db60b4a125351..0000000000000000000000000000000000000000
--- a/LayoutTests/editing/execCommand/delete-no-scroll.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<p>Matching IE, execCommand("Delete") should not scroll the page to make selection visible.</p>
-<div contenteditable>ab</div>
-<div style="height:10000"></div>
-<script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- var textDiv = document.getElementsByTagName('div')[0];
- var text = textDiv.firstChild;
- if (window.getSelection)
- window.getSelection().setBaseAndExtent(text, 1, text, 2);
- else {
- var range = document.body.createTextRange();
- range.moveToElementText(textDiv);
- range.moveStart("character", 1);
- range.select();
- }
-
- setTimeout("finishTest()", 0);
-
- function finishTest() {
- window.scrollTo(0, 1000);
- document.execCommand("Delete");
-
- var result = (document.body.scrollTop == 1000) ? "SUCCESS" : "FAILURE";
- if (window.testRunner) {
- testRunner.notifyDone();
- document.write(result);
- } else
- alert(result);
- }
-</script>

Powered by Google App Engine
This is Rietveld 408576698