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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/input-type-text.html

Issue 2456473002: Convert input-type-text.html with spellcheck_test (Closed)
Patch Set: Thu Oct 27 11:36:46 JST 2016 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/input-type-text.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/input-type-text.html b/third_party/WebKit/LayoutTests/editing/spelling/input-type-text.html
deleted file mode 100644
index 98ddb819af230a7f3a39f66694dea8d1c5721b15..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/spelling/input-type-text.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-<script src="resources/util.js"></script>
-</head>
-<body>
-<div id="container">
- <input type="text" id="destination"/>
-</div>
-
-<script>
-
-description("Spell check selects the misspelled word on context click in an input field. " +
- "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]);
-
- // 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);
- eventSender.contextClick();
- // Esc key to hide the context menu.
- eventSender.keyDown("Escape", null);
-
- shouldBeEqualToString("window.getSelection().toString()", "wellcome");
- window.getSelection().removeAllRanges();
-
- // 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);
- 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()", "");
- window.getSelection().removeAllRanges();
- }
-});
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698