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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-attribute-at-child.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 child has own ' 1 description('Tests if the spellchecker behaves correctly when child has own '
2 + 'spellcheck attribute.'); 2 + 'spellcheck attribute.');
3 3
4 jsTestIsAsync = true; 4 jsTestIsAsync = true;
5 if (window.testRunner)
6 testRunner.setMockSpellCheckerEnabled(true);
5 7
6 var root = document.createElement("div"); 8 var root = document.createElement("div");
7 document.body.appendChild(root); 9 document.body.appendChild(root);
8 10
9 function verifyChildSpellingMarker(element) 11 function verifyChildSpellingMarker(element)
10 { 12 {
11 var testElement = document.createElement("div"); 13 var testElement = document.createElement("div");
12 testElement.innerHTML = element.markup; 14 testElement.innerHTML = element.markup;
13 root.appendChild(testElement); 15 root.appendChild(testElement);
14 16
(...skipping 30 matching lines...) Expand all
45 { 47 {
46 var nextTestCase = testCases.shift(); 48 var nextTestCase = testCases.shift();
47 if (nextTestCase) 49 if (nextTestCase)
48 return setTimeout(verifyChildSpellingMarker(nextTestCase), 0); 50 return setTimeout(verifyChildSpellingMarker(nextTestCase), 0);
49 51
50 finishJSTest(); 52 finishJSTest();
51 } 53 }
52 done(); 54 done();
53 55
54 var successfullyParsed = true; 56 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698