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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/script-tests/spelling-backspace-between-lines.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('Spelling markers should remain while merging two lines.'); 1 description('Spelling markers should remain while merging two lines.');
2 2
3 jsTestIsAsync = true; 3 jsTestIsAsync = true;
4 if (window.testRunner)
5 testRunner.setMockSpellCheckerEnabled(true);
4 6
5 var testRoot = document.createElement("div"); 7 var testRoot = document.createElement("div");
6 document.body.insertBefore(testRoot, document.body.firstChild); 8 document.body.insertBefore(testRoot, document.body.firstChild);
7 9
8 function setup(targetName) 10 function setup(targetName)
9 { 11 {
10 var div = document.createElement("div"); 12 var div = document.createElement("div");
11 div.id = targetName; 13 div.id = targetName;
12 div.contentEditable = true; 14 div.contentEditable = true;
13 div.innerHTML = "<div>OK</div><div>OK zz OK</div>"; 15 div.innerHTML = "<div>OK</div><div>OK zz OK</div>";
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 return setTimeout(next, 0); 87 return setTimeout(next, 0);
86 88
87 if (window.internals) 89 if (window.internals)
88 testRoot.style.display = "none"; 90 testRoot.style.display = "none";
89 91
90 finishJSTest(); 92 finishJSTest();
91 } 93 }
92 done(); 94 done();
93 95
94 var successfullyParsed = true; 96 var successfullyParsed = true;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698