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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/grammar-markers.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-markers.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/grammar-markers.html b/third_party/WebKit/LayoutTests/editing/spelling/grammar-markers.html
deleted file mode 100644
index 84d190de53e06e7f7bd50b6a7a29183246f4a3f8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/editing/spelling/grammar-markers.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-</head>
-<body>
-<div id="source" contenteditable="true" spellcheck="false">You has the right.</div>
-<div id="target" contenteditable="true" spellcheck="true"></div>
-
-<script>
-description('This tests whether WebKit can render grammar markers when pasting text if it has a grammar-checker. To test manually, copy the text in the first div element and paste it to the second div element. This test succeeds when WebKit renders a grammar marker under a word "has".');
-
-jsTestIsAsync = true;
-
-if (window.testRunner)
- testRunner.dumpAsTextWithPixelResults();
-
-function verifyGrammarMarker(destination, ungrammaticalPhrase)
-{
- if (window.internals && internals.hasGrammarMarker(document, destination.innerHTML.indexOf(ungrammaticalPhrase), ungrammaticalPhrase.length)) {
- testPassed("ungrammatical phrase '" + ungrammaticalPhrase + "' on '" + destination.innerHTML + "'");
- return true;
- } else
- return false;
-}
-
-var source = document.getElementById('source');
-window.getSelection().selectAllChildren(source);
-document.execCommand('Copy');
-var target = document.getElementById('target');
-window.getSelection().selectAllChildren(target);
-document.execCommand('Paste');
-
-shouldBecomeEqual('verifyGrammarMarker(target, "has")', 'true', finishJSTest);
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698