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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/spelling-should-select-multiple-words.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-multiple-words.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spelling-should-select-multiple-words.html b/third_party/WebKit/LayoutTests/editing/spelling/spelling-should-select-multiple-words.html
deleted file mode 100644
index e7d61ab4127029a0fdacbed63e7842eed4b4ecb4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/spelling/spelling-should-select-multiple-words.html
+++ /dev/null
@@ -1,45 +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 should select multi-word misspellings on context click. "+
- "To test manually, enable 'Ask Google for Suggestions' in Chrome, type 'It should be upper case.', and context-click on the word 'upper'. " +
- "The test succeeds when 'upper case' was selected after context click.");
-
-initSpellTest("destination", "It should be upper case.", 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()", "upper case");
- shouldBeEqualToString("window.getSelection().toString()", "");
-
- // Context click on "upper case" to show the context menu.
- var x = destination.offsetParent.offsetLeft + destination.offsetLeft + 100;
- 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()", "upper case");
- shouldBeEqualToString("window.getSelection().toString()", "upper case");
- shouldBeEqualToString("contextMenuElements[contextMenuElements.length - 1]", "uppercase");
-
- window.getSelection().removeAllRanges();
- }
-});
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698