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

Side by Side Diff: LayoutTests/editing/spelling/spelling-unified-emulation.html

Issue 43803002: dumpAsText() is unnecessarily called in spellchecking tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « LayoutTests/editing/spelling/spelling-insert-html.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css"> 4 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
5 <script src="../../fast/js/resources/js-test-pre.js"></script> 5 <script src="../../fast/js/resources/js-test-pre.js"></script>
6 <script src="../editing.js"></script> 6 <script src="../editing.js"></script>
7 <style> 7 <style>
8 .editing { 8 .editing {
9 border: 2px solid red; 9 border: 2px solid red;
10 padding: 6px; 10 padding: 6px;
11 font-size: 18px; 11 font-size: 18px;
12 } 12 }
13 </style> 13 </style>
14 </head> 14 </head>
15 <body> 15 <body>
16 <pre id="description"></pre> 16 <pre id="description"></pre>
17 <pre id="console"></pre> 17 <pre id="console"></pre>
18 <div id="container"></div> 18 <div id="container"></div>
19 19
20 <script> 20 <script>
21 description("The spellchecker should work correctly if unified spellcheck path i s used."); 21 description("The spellchecker should work correctly if unified spellcheck path i s used.");
22 22
23 var container = document.getElementById('container'); 23 var container = document.getElementById('container');
24 function removeChildren(node) { 24 function removeChildren(node) {
25 while (node.firstChild) 25 while (node.firstChild)
26 node.removeChild(node.firstChild); 26 node.removeChild(node.firstChild);
27 } 27 }
28 28
29 if (window.testRunner) {
30 testRunner.dumpAsText();
31 }
32
33 if (window.internals) 29 if (window.internals)
34 internals.settings.setUnifiedTextCheckerEnabled(true); 30 internals.settings.setUnifiedTextCheckerEnabled(true);
35 31
36 var testData = [ 32 var testData = [
37 { text: 'zz', marked: ['zz'] }, 33 { text: 'zz', marked: ['zz'] },
38 { text: 'apple,zz,orange', marked: ['zz'] }, 34 { text: 'apple,zz,orange', marked: ['zz'] },
39 { text: 'zz,zz', marked: ['zz','zz'] }, 35 { text: 'zz,zz', marked: ['zz','zz'] },
40 { text: 'zz zz zz', marked: ['zz', 'zz', 'zz'] }, 36 { text: 'zz zz zz', marked: ['zz', 'zz', 'zz'] },
41 { text: ' zz zz zz ', marked: ['zz', 'zz', 'zz'] }, 37 { text: ' zz zz zz ', marked: ['zz', 'zz', 'zz'] },
42 { text: 'zz apple orange', marked: ['zz'] }, 38 { text: 'zz apple orange', marked: ['zz'] },
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 81 }
86 82
87 if (window.internals) 83 if (window.internals)
88 internals.settings.setUnifiedTextCheckerEnabled(false); 84 internals.settings.setUnifiedTextCheckerEnabled(false);
89 85
90 var successfullyParsed = true; 86 var successfullyParsed = true;
91 </script> 87 </script>
92 <script src="../../fast/js/resources/js-test-post.js"></script> 88 <script src="../../fast/js/resources/js-test-post.js"></script>
93 </body> 89 </body>
94 </html> 90 </html>
OLDNEW
« no previous file with comments | « LayoutTests/editing/spelling/spelling-insert-html.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698