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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.html

Issue 2186923002: Remove grammar checking from layout tests, and MockGrammarCheck (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@RemoveGrammarTests
Patch Set: Rebased 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/inline-spelling-markers-hidpi.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.html b/third_party/WebKit/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.html
index bac826a777698dd2393e18d6f71e9adec862ad01..1cf623c1f1fc8d3ef49288c8f06124c1316942b7 100644
--- a/third_party/WebKit/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.html
+++ b/third_party/WebKit/LayoutTests/editing/spelling/inline-spelling-markers-hidpi.html
@@ -27,7 +27,7 @@ body { overflow:hidden; }
<body>
<script>
-description("This tests the correct placement of inline spelling and grammar "
+description("This tests the correct placement of inline spelling "
+ "markers in text. Spelling markers should line up exactly under misspelled "
+ "words in all cases.");
@@ -68,22 +68,15 @@ function verifyMarkers()
if (!window.internals)
return done();
- // Take care of spelling markers first.
shouldBecomeEqual('internals.hasSpellingMarker(document, 8, 4)', 'true', function() { // Verifies 'adlj'.
shouldBecomeEqual('internals.hasSpellingMarker(document, 13, 6)', 'true', function() { // Verifies 'adaasj'.
- shouldBecomeEqual('internals.hasSpellingMarker(document, 20, 5)', 'true', verifyGrammarMarkers) // Verifies 'sdklj'.
- })
- });
-
- function verifyGrammarMarkers() {
- shouldBecomeEqual('internals.hasGrammarMarker(document, 4, 3)', 'true', function() { // Verifies second 'the'.
- shouldBecomeEqual('internals.hasGrammarMarker(document, 33, 5)', 'true', function() { // Verifies second 'there'.
+ shouldBecomeEqual('internals.hasSpellingMarker(document, 20, 5)', 'true', function() { // Verifies 'sdklj'.
// Markers of next element can not be found after modification selection without blur event.
div.blur();
done();
})
- });
- }
+ })
+ });
}
var tests = [ function() { moveCursorOverAllWords('testLTR'); },

Powered by Google App Engine
This is Rietveld 408576698