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

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

Issue 2211813002: Revert removal of grammar checking and marking code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor fix Created 4 years, 4 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.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/grammar.html b/third_party/WebKit/LayoutTests/editing/spelling/grammar.html
new file mode 100644
index 0000000000000000000000000000000000000000..408c4e257ad36317885e2187657bd4dc08098493
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/spelling/grammar.html
@@ -0,0 +1,48 @@
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+
+<style>
+.editing {
+ border: 2px solid red;
+ padding: 12px;
+ font-size: 24px;
+}
+</style>
+<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
+
+<script>
+function editingTest() {
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ document.getElementById("root").focus();
+ document.execCommand("InsertText", false, "I have a issue.");
+
+ if (window.internals) {
+ shouldBecomeEqual('internals.hasGrammarMarker(document, 7, 1)', 'true', function() {
+ document.getElementById("root").style.display = "none";
+ finishJSTest();
+ });
+ }
+}
+
+</script>
+
+<title>Editing Test</title>
+</head>
+<body>
+<div contenteditable id="root" class="editing"></div>
+<script>
+description("This tests whether the grammatically-incorrect phrase "
+ + "'I have a issue' has grammar marker on 'a'.");
+
+jsTestIsAsync = true;
+
+if (window.internals)
+ internals.settings.setUnifiedTextCheckerEnabled(true);
+
+editingTest();
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698