| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |