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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/spelling-should-select-single-word.html

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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-should-select-single-word.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spelling-should-select-single-word.html b/third_party/WebKit/LayoutTests/editing/spelling/spelling-should-select-single-word.html
deleted file mode 100644
index 7076c20053622ca7c6bc35e06ea24f3e4877cb2d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/spelling/spelling-should-select-single-word.html
+++ /dev/null
@@ -1,64 +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("Spell check selects the misspelled word on context click. " +
- "To test manually, type 'wellcome home.' and context-click on 'wellcome'. " +
- "The test succeeds when 'wellcome' is selected after the context click.");
-
-initSpellTest("destination", "wellcome home.", function(textNode) {
- var behaviors = ["win", "mac"];
- for (var i = 0; i < behaviors.length; i++) {
- internals.settings.setEditingBehavior(behaviors[i]);
-
- spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0);
- shouldBeEqualToString("spellingMarkerRange.toString()", "wellcome");
- shouldBeEqualToString("window.getSelection().toString()", "");
-
- // Context click on "wellcome" 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");
- shouldBeEqualToString("contextMenuElements[contextMenuElements.length - 1]", "welcome");
-
- window.getSelection().removeAllRanges();
- shouldBeEqualToString("window.getSelection().toString()", "");
-
- // Context click on "home" to show the context menu.
- var x = destination.offsetParent.offsetLeft + destination.offsetLeft + 80;
- 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);
-
- // Context click should select correctly spelled words only with "win" editing behavior.
- if (behaviors[i] == "mac")
- shouldBeEqualToString("window.getSelection().toString()", "home");
- else
- shouldBeEqualToString("window.getSelection().toString()", "");
- shouldBeEqualToString("contextMenuElements[contextMenuElements.length - 1]", "<separator>");
-
- window.getSelection().removeAllRanges();
- }
-});
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698