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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck-async.html

Issue 2235643002: Code cleanup related to unified text checker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@EnableUnifiedTextCheckerByDefault
Patch Set: Rebased on removal of grammar-checking code Created 4 years, 4 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("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 23
24 if (window.internals)
25 internals.settings.setUnifiedTextCheckerEnabled(true);
26
27 var container = document.getElementById('container'); 24 var container = document.getElementById('container');
28 function removeChildren(node) { 25 function removeChildren(node) {
29 while (node.firstChild) 26 while (node.firstChild)
30 node.removeChild(node.firstChild); 27 node.removeChild(node.firstChild);
31 } 28 }
32 29
33 var testData = [ 30 var testData = [
34 { text: 'zz', marked: ['zz'] }, 31 { text: 'zz', marked: ['zz'] },
35 { text: 'apple,zz,orange', marked: ['zz'] }, 32 { text: 'apple,zz,orange', marked: ['zz'] },
36 { text: 'zz,zz', marked: ['zz','zz'] }, 33 { text: 'zz,zz', marked: ['zz','zz'] },
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 setTimeout(function() { tryVerify(restTry - 1, id, text, marked, nsleep * 2); }, nsleep); 112 setTimeout(function() { tryVerify(restTry - 1, id, text, marked, nsleep * 2); }, nsleep);
116 } 113 }
117 } 114 }
118 115
119 doTestIfAny(); 116 doTestIfAny();
120 117
121 var successfullyParsed = true; 118 var successfullyParsed = true;
122 </script> 119 </script>
123 </body> 120 </body>
124 </html> 121 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698