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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/replace-selection-1.html

Issue 2290143002: Convert editing/selection/replace-selection-1.html to use w3c test harness (Closed)
Patch Set: 2016-08-30T17:42:16 Created 4 years, 4 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/selection/replace-selection-1.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/replace-selection-1.html b/third_party/WebKit/LayoutTests/editing/selection/replace-selection-1.html
deleted file mode 100644
index f363944d2b6bd2587a350b56e01d14fe6bde0b7d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/selection/replace-selection-1.html
+++ /dev/null
@@ -1,16 +0,0 @@
-<script>
-if (window.testRunner)
- testRunner.dumpEditingCallbacks();
-</script>
-<p>This tests for a bug when a selection is replaced by content with selectReplacement == true. Below, you should see 'A new link' and 'link' should be selected.</p>
-<div id="test" contenteditable="true">A new link</div>
-
-<script>
-var s = window.getSelection();
-var e = document.getElementById("test");
-
-s.setBaseAndExtent(e.firstChild, 6, e.firstChild, 10);
-document.execCommand("InsertHTML", false, "<a id='link' href='http://www.google.com'>link</a>");
-e = document.getElementById("link");
-s.setBaseAndExtent(e.firstChild, 0, e.firstChild, 4);
-</script>

Powered by Google App Engine
This is Rietveld 408576698