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

Unified Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-multiframe.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-multiframe.html
diff --git a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-multiframe.html b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-multiframe.html
index 27c9b281753d4cc23700fad4abf751e00131bd4b..c557ff5ded1fba25cf8aafb1c17387ac4dbde06d 100644
--- a/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-multiframe.html
+++ b/third_party/WebKit/LayoutTests/editing/spelling/spellcheck-editable-on-focus-multiframe.html
@@ -17,6 +17,9 @@ description("Spell checking should be triggered on focus of an editable. " +
"should be marked on focus.Turn spell checker off and on again and again focus editables. " +
"Mispelling should be marked again");
+if (window.testRunner)
+ testRunner.setMockSpellCheckerEnabled(true);
+
var frame1 = document.getElementById("frame1");
var testEditable1 = frame1.contentWindow.document.createElement("div");
testEditable1.setAttribute("contentEditable", "true");

Powered by Google App Engine
This is Rietveld 408576698