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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/spelling-unified-emulation.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> 1 <!DOCTYPE html>
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 <script src="../editing.js"></script> 5 <script src="../editing.js"></script>
6 <style> 6 <style>
7 .editing { 7 .editing {
8 border: 2px solid red; 8 border: 2px solid red;
9 padding: 6px; 9 padding: 6px;
10 font-size: 18px; 10 font-size: 18px;
11 } 11 }
12 </style> 12 </style>
13 </head> 13 </head>
14 <body> 14 <body>
15 <pre id="description"></pre> 15 <pre id="description"></pre>
16 <pre id="console"></pre> 16 <pre id="console"></pre>
17 <div id="container"></div> 17 <div id="container"></div>
18 18
19 <script> 19 <script>
20 description("The spellchecker should work correctly if unified spellcheck path i s used."); 20 description("The spellchecker should work correctly if unified spellcheck path i s used.");
21 21
22 if (window.testRunner)
23 testRunner.setMockSpellCheckerEnabled(true);
24
22 var container = document.getElementById('container'); 25 var container = document.getElementById('container');
23 function removeChildren(node) { 26 function removeChildren(node) {
24 while (node.firstChild) 27 while (node.firstChild)
25 node.removeChild(node.firstChild); 28 node.removeChild(node.firstChild);
26 } 29 }
27 30
28 var testData = [ 31 var testData = [
29 { text: 'zz', marked: ['zz'] }, 32 { text: 'zz', marked: ['zz'] },
30 { text: 'apple,zz,orange', marked: ['zz'] }, 33 { text: 'apple,zz,orange', marked: ['zz'] },
31 { text: 'zz,zz', marked: ['zz','zz'] }, 34 { text: 'zz,zz', marked: ['zz','zz'] },
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 76 }
74 77
75 for (var i = 0; i < testData.length; ++i) { 78 for (var i = 0; i < testData.length; ++i) {
76 performTest('test', testData[i]); 79 performTest('test', testData[i]);
77 } 80 }
78 81
79 var successfullyParsed = true; 82 var successfullyParsed = true;
80 </script> 83 </script>
81 </body> 84 </body>
82 </html> 85 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698