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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/spelling-insert-html.html

Issue 2224103003: Convert some spell-checking layout tests to use unified text checker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SpellCheckerDebugInfo
Patch Set: add setUnifiedTextCheckerEnabled(true) in util.js 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/spelling/spelling-insert-html.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spelling-insert-html.html b/third_party/WebKit/LayoutTests/editing/spelling/spelling-insert-html.html
deleted file mode 100644
index df936801404080b5edc616a4a308ef9926f29344..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/spelling/spelling-insert-html.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<pre id="description"></pre>
-<pre id="console"></pre>
-<div id="container">
- <div id="destination" contentEditable>food.</div>
-</div>
-
-<script>
-description("The spellchecker shouldn't mark substrings of words after pasting.");
-
-var sel = window.getSelection();
-var destination = document.getElementById("destination");
-var destinationText = destination.firstChild;
-sel.setBaseAndExtent(destinationText, 2, destinationText, 2);
-
-document.execCommand("InsertHTML", false, "<div>o zz</div><div>fo</div>");
-
-if (window.internals) {
- // The destination node has multiple text nodes,
- // so we need concatenate the marked text.
- var texts = destination.childNodes;
- var markedText = "";
- for (var i = 0; i < texts.length; ++i) {
- var marked = internals.markerRangeForNode(texts[i], "spelling", 0);
- if (marked)
- markedText += marked.toString()
- }
-
- // The first "foo" isn't checked because it crosses the pasted and base html.
- // See http://webkit.org/b/66450.
- shouldBeEqualToString("markedText", "zz");
-}
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698