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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck-queue.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, 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 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description('For Bug 72939: Asynchronous SpellChecker should consider multiple r equests.'); 10 description('For Bug 72939: Asynchronous SpellChecker should consider multiple r equests.');
11 11
12 jsTestIsAsync = true; 12 jsTestIsAsync = true;
13 if (window.testRunner)
14 testRunner.setMockSpellCheckerEnabled(true);
13 15
14 var testRoot = document.createElement("div"); 16 var testRoot = document.createElement("div");
15 document.body.insertBefore(testRoot, document.body.firstChild); 17 document.body.insertBefore(testRoot, document.body.firstChild);
16 18
17 var source1 = document.createElement("div"); 19 var source1 = document.createElement("div");
18 source1.innerHTML = "foo bar"; 20 source1.innerHTML = "foo bar";
19 testRoot.appendChild(source1); 21 testRoot.appendChild(source1);
20 22
21 var source2 = document.createElement("div"); 23 var source2 = document.createElement("div");
22 source2.innerHTML = "zz apple orange"; 24 source2.innerHTML = "zz apple orange";
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 for (var i = 0; i < destinations.length; ++i) 173 for (var i = 0; i < destinations.length; ++i)
172 copyAndPaste(source2, destinations[i]); 174 copyAndPaste(source2, destinations[i]);
173 175
174 verifyIfAny(); 176 verifyIfAny();
175 177
176 var successfullyParsed = true; 178 var successfullyParsed = true;
177 179
178 </script> 180 </script>
179 </body> 181 </body>
180 </html> 182 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698