Index: third_party/WebKit/LayoutTests/editing/spelling/spelling-double-clicked-word-with-underscores.html |
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spelling-double-clicked-word-with-underscores.html b/third_party/WebKit/LayoutTests/editing/spelling/spelling-double-clicked-word-with-underscores.html |
deleted file mode 100644 |
index 6debea67bc2b2dce8166142b24d0ed8467b993ca..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/editing/spelling/spelling-double-clicked-word-with-underscores.html |
+++ /dev/null |
@@ -1,81 +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 work for double-clicked misspelled words with underscores. " + |
- "To test manually, type 'wellcome_ home.', double-click on 'wellcome_', and context-click on the selection. " + |
- "The test succeeds when the context menu shows spell check suggestions."); |
- |
-initSpellTest("destination", "wellcome_ home.", function(textNode) { |
- spellingMarkerRange = internals.markerRangeForNode(textNode, "spelling", 0); |
- shouldBeEqualToString("spellingMarkerRange.toString()", "wellcome"); |
- shouldBeEqualToString("window.getSelection().toString()", ""); |
- |
- // Double-click the misspelled word without the trailing whitespace. |
- internals.settings.setSmartInsertDeleteEnabled(true); |
- internals.settings.setSelectTrailingWhitespaceEnabled(false); |
- var x = destination.offsetParent.offsetLeft + destination.offsetLeft + 40; |
- var y = destination.offsetParent.offsetTop + destination.offsetTop + destination.offsetHeight / 2; |
- eventSender.mouseMoveTo(x, y); |
- eventSender.mouseDown(); |
- eventSender.mouseUp(); |
- eventSender.mouseDown(); |
- eventSender.mouseUp(); |
- |
- shouldBeEqualToString("window.getSelection().toString()", "wellcome_"); |
- |
- // Context click on "wellcome_" to show the context menu. |
- x = destination.offsetParent.offsetLeft + destination.offsetLeft + 40; |
- 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()", ""); |
- |
- // Double-click the misspelled word with the trailing whitespace. |
- internals.settings.setSmartInsertDeleteEnabled(false); |
- internals.settings.setSelectTrailingWhitespaceEnabled(true); |
- var x = destination.offsetParent.offsetLeft + destination.offsetLeft + 40; |
- var y = destination.offsetParent.offsetTop + destination.offsetTop + destination.offsetHeight / 2; |
- eventSender.mouseMoveTo(x, y); |
- eventSender.mouseDown(); |
- eventSender.mouseUp(); |
- eventSender.mouseDown(); |
- eventSender.mouseUp(); |
- |
- shouldBeEqualToString("window.getSelection().toString()", "wellcome_ "); |
- |
- // Context click on "wellcome_ " to show the context menu. |
- x = destination.offsetParent.offsetLeft + destination.offsetLeft + 40; |
- 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"); |
-}); |
- |
-</script> |
-</body> |
-</html> |