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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-attribute-change.js

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, 3 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 unified diff | Download patch
OLDNEW
1 description('Tests if the spellchecker behaves correctly when the spellcheck att ribute ' 1 description('Tests if the spellchecker behaves correctly when the spellcheck att ribute '
2 + 'is being changed by the script.'); 2 + 'is being changed by the script.');
3 3
4 jsTestIsAsync = true; 4 jsTestIsAsync = true;
5 if (window.testRunner)
6 testRunner.setMockSpellCheckerEnabled(true);
5 7
6 var parent = document.createElement("div"); 8 var parent = document.createElement("div");
7 document.body.appendChild(parent); 9 document.body.appendChild(parent);
8 var sel = document.getSelection(); 10 var sel = document.getSelection();
9 11
10 function testSpellCheckingEnabled(target, enabled) 12 function testSpellCheckingEnabled(target, enabled)
11 { 13 {
12 target.spellcheck = enabled; 14 target.spellcheck = enabled;
13 15
14 if (target.tagName == "SPAN") { 16 if (target.tagName == "SPAN") {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 setTimeout(testFor(currentElement, spellcheckAttributeVariances[iterator ++]), 0); 82 setTimeout(testFor(currentElement, spellcheckAttributeVariances[iterator ++]), 0);
81 else { 83 else {
82 iterator = 0; 84 iterator = 0;
83 currentElement = null; 85 currentElement = null;
84 done(); 86 done();
85 } 87 }
86 } 88 }
87 done(); 89 done();
88 90
89 var successfullyParsed = true; 91 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698