OLD | NEW |
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("Test for Unified Spell Checker & Async Spell Checker."); | 20 description("Test for Unified Spell Checker & Async Spell Checker."); |
21 | 21 |
22 jsTestIsAsync = true; | 22 jsTestIsAsync = true; |
| 23 if (window.testRunner) |
| 24 testRunner.setMockSpellCheckerEnabled(true); |
23 | 25 |
24 var container = document.getElementById('container'); | 26 var container = document.getElementById('container'); |
25 function removeChildren(node) { | 27 function removeChildren(node) { |
26 while (node.firstChild) | 28 while (node.firstChild) |
27 node.removeChild(node.firstChild); | 29 node.removeChild(node.firstChild); |
28 } | 30 } |
29 | 31 |
30 var testData = [ | 32 var testData = [ |
31 { text: 'zz', marked: ['zz'] }, | 33 { text: 'zz', marked: ['zz'] }, |
32 { text: 'apple,zz,orange', marked: ['zz'] }, | 34 { text: 'apple,zz,orange', marked: ['zz'] }, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 setTimeout(function() { tryVerify(restTry - 1, id, text, marked, nsleep
* 2); }, nsleep); | 114 setTimeout(function() { tryVerify(restTry - 1, id, text, marked, nsleep
* 2); }, nsleep); |
113 } | 115 } |
114 } | 116 } |
115 | 117 |
116 doTestIfAny(); | 118 doTestIfAny(); |
117 | 119 |
118 var successfullyParsed = true; | 120 var successfullyParsed = true; |
119 </script> | 121 </script> |
120 </body> | 122 </body> |
121 </html> | 123 </html> |
OLD | NEW |