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

Unified Diff: third_party/WebKit/LayoutTests/editing/pasteboard/merge-after-delete-2.html

Issue 2182013002: Convert editing/pasteboard/merge-after-delete*.html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-27T10:40:52 Created 4 years, 5 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: third_party/WebKit/LayoutTests/editing/pasteboard/merge-after-delete-2.html
diff --git a/third_party/WebKit/LayoutTests/editing/pasteboard/merge-after-delete-2.html b/third_party/WebKit/LayoutTests/editing/pasteboard/merge-after-delete-2.html
deleted file mode 100644
index ec596bf22c46380b7d5763c9d7534f40179650c1..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/pasteboard/merge-after-delete-2.html
+++ /dev/null
@@ -1,24 +0,0 @@
-<script>
-if (window.testRunner)
- testRunner.dumpEditingCallbacks();
-</script>
-<style>
-div {
- border: 1px solid black;
- margin: 2px;
-}
-</style>
-<p>When ReplaceSelectionCommand deletes the current selection, it should request that the deletion do a merge in some cases (normally, though, it should ask that a merge not be done, because a merge will cause information about block nesting to be lost). It wasn't requesting a merge in cases where it should have.</p>
-<p>The failing case is where the incoming fragment has more than one block, and the selection being pasted into ends at the end of a paragraph. Any time the selection being pasted into ends at the end of a paragraph, deleting will leave leave a) a br or b) an empty block at the end of the deleted selection. So, not merging will leave an extraneous empty line or a collapsed block after the paste operation.</p>
-<div id="test" contenteditable="true"><div style="border: 1px solid red;">bar</div>bar<br></div>
-
-<script>
-var s = window.getSelection();
-var e = document.getElementById("test");
-
-s.collapse(e, 0);
-s.modify("move", "forward", "character");
-s.modify("extend", "forward", "line");
-s.modify("extend", "forward", "line");
-document.execCommand("InsertHTML", false, "<div>foo</div><div>bar</div>");
-</script>

Powered by Google App Engine
This is Rietveld 408576698