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

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

Issue 2459553002: Convert editing/spelling/spelling-*-selection.html with spellcheck_test (Closed)
Patch Set: Also convert spelling-{subword,multiword}-selection.html Created 4 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: third_party/WebKit/LayoutTests/editing/spelling/spelling-multiword-selection.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spelling-multiword-selection.html b/third_party/WebKit/LayoutTests/editing/spelling/spelling-multiword-selection.html
deleted file mode 100644
index 89f13820d087a0fdfbc5677db220c0d4e52fa81d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/spelling/spelling-multiword-selection.html
+++ /dev/null
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-<script src="resources/util.js"></script>
-</head>
-<body>
-<div id="container">
- <div id="destination" contentEditable></div>
-</div>
-
-<script>
-
-description("Spelling should be disabled when user selects multiple words that are not a single misspelling. " +
- "To test manually, type 'wellcome home.', select 'wellcome home', and context-click on the selection. " +
- "The test suceeds when the context menu has no spell check suggestions.");
-
-initSpellTest("destination", "wellcome home.", function(textNode) {
- spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0);
- shouldBeEqualToString("spellingMarkerRange.toString()", "wellcome");
- shouldBeEqualToString("window.getSelection().toString()", "");
-
- // Select the text "wellcome home".
- var multiWordRange = document.createRange();
- multiWordRange.setStart(textNode, 0);
- multiWordRange.setEnd(textNode, 13);
- window.getSelection().removeAllRanges();
- window.getSelection().addRange(multiWordRange);
-
- shouldBeEqualToString("window.getSelection().toString()", "wellcome home");
-
- // Context click to show the context menu.
- var x = destination.offsetParent.offsetLeft + destination.offsetLeft + 40;
- var y = destination.offsetParent.offsetTop + destination.offsetTop + destination.offsetHeight / 2;
- eventSender.mouseMoveTo(x, y);
- contextMenuElements = eventSender.contextClick();
- // Esc key to hide the context menu.
- eventSender.keyDown("Escape", null);
-
- spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0);
- shouldBeEqualToString("spellingMarkerRange.toString()", "wellcome");
- shouldBeEqualToString("window.getSelection().toString()", "wellcome home");
- shouldBeEqualToString("contextMenuElements[contextMenuElements.length - 1]", "<separator>");
-});
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698