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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-sync.html

Issue 2270293003: Add a switch to TestRunner to enable/disable mock spell checker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use in-class initialization 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/spellcheck-editable-on-focus-sync.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-sync.html b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-sync.html
index 7a6756377cd7f29628dfd760971e20e284815cd7..b0634e1fc73d8bddc6e191f4e22c6ea4d147306b 100644
--- a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-sync.html
+++ b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-sync.html
@@ -17,6 +17,9 @@ description("Spell checking should be triggered on focus of an editable. " +
"To test manually type focus above editable and textarea. Misspellings in them " +
"should be marked on focus.");
+if (window.testRunner)
+ testRunner.setMockSpellCheckerEnabled(true);
+
var testEditable = document.getElementById('test_editable');
var testTextArea = document.getElementById('test_textarea');
var testTextField = document.getElementById('test_textfield');

Powered by Google App Engine
This is Rietveld 408576698