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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/grammar-edit-word.html

Issue 2188703002: Remove layout tests only for grammar checking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/grammar-edit-word.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/grammar-edit-word.html b/third_party/WebKit/LayoutTests/editing/spelling/grammar-edit-word.html
deleted file mode 100644
index 957862c784467811785447429141c7600771b623..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/spelling/grammar-edit-word.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-<title>Editing a grammatically-incorrect word</title>
-</head>
-<body>
-<div id="src" contenteditable="true" spellcheck="true"></div><br/>
-<script language="javascript">
-description('Test if WebKit removes grammar markers when we edit a grammatically-incorrect word. '
- + 'To test manually, type a grammatically-incorrect sentence "You has the right." and type '
- + 'a backspace key to delete the last character of "has". '
- + 'This test succeeds when "ha" does not have grammar markers.');
-
-jsTestIsAsync = true;
-
-if (window.internals)
- internals.settings.setUnifiedTextCheckerEnabled(true);
-
-function editAndCheckSentence()
-{
- // Delete the end of this sentence until it becomes "You ha".
- for (var i = 0; i < 12; ++i)
- testRunner.execCommand("DeleteBackward");
-
- shouldBecomeEqual('internals.hasGrammarMarker(document, 4, 2)', 'false', finishJSTest);
-}
-
-var target = document.getElementById('src');
-target.focus();
-document.execCommand("InsertText", false, "You has the right.");
-
-if (window.internals)
- shouldBecomeEqual('internals.hasGrammarMarker(document, 4, 3)', 'true', editAndCheckSentence);
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698