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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck-sequencenum.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 73511: Internals should have a method to return the max seq uence number of spellcheck request.'); 10 description('For Bug 73511: Internals should have a method to return the max seq uence number of spellcheck request.');
11 11
12 if (window.internals) 12 if (window.internals)
13 window.jsTestIsAsync = true; 13 window.jsTestIsAsync = true;
14 if (window.testRunner)
15 testRunner.setMockSpellCheckerEnabled(true);
14 16
15 var testRoot = document.createElement("div"); 17 var testRoot = document.createElement("div");
16 document.body.insertBefore(testRoot, document.body.firstChild); 18 document.body.insertBefore(testRoot, document.body.firstChild);
17 19
18 var source = document.createElement("div"); 20 var source = document.createElement("div");
19 source.innerHTML = "foo bar"; 21 source.innerHTML = "foo bar";
20 testRoot.appendChild(source); 22 testRoot.appendChild(source);
21 23
22 function createInput(testRoot) { 24 function createInput(testRoot) {
23 var e = document.createElement('input'); 25 var e = document.createElement('input');
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 trial(); 122 trial();
121 } 123 }
122 124
123 verifyIfAny(); 125 verifyIfAny();
124 126
125 var successfullyParsed = true; 127 var successfullyParsed = true;
126 128
127 </script> 129 </script>
128 </body> 130 </body>
129 </html> 131 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698