| 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 </head> | 5 </head> |
| 6 <body onload="test();"> | 6 <body onload="test();"> |
| 7 <div id="console"></div> | 7 <div id="console"></div> |
| 8 <div id="editable" contenteditable></div> | 8 <div id="editable" contenteditable></div> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 testLongText += longText; | 31 testLongText += longText; |
| 32 | 32 |
| 33 testLongText = "zz zz zz. " + testLongText + " zz zz zz."; | 33 testLongText = "zz zz zz. " + testLongText + " zz zz zz."; |
| 34 testEditable.innerText = testLongText; | 34 testEditable.innerText = testLongText; |
| 35 | 35 |
| 36 if (!window.internals) { | 36 if (!window.internals) { |
| 37 log("Test manually. See the description for steps"); | 37 log("Test manually. See the description for steps"); |
| 38 return; | 38 return; |
| 39 } | 39 } |
| 40 | 40 |
| 41 internals.setContinuousSpellCheckingEnabled(false); | 41 internals.setSpellCheckingEnabled(false); |
| 42 testEditable.focus(); | 42 testEditable.focus(); |
| 43 internals.setContinuousSpellCheckingEnabled(true); | 43 internals.setSpellCheckingEnabled(true); |
| 44 shouldBecomeEqual('internals.markerCountForNode(testEditable.childNodes[0],
"spelling")', '6', function() { | 44 shouldBecomeEqual('internals.markerCountForNode(testEditable.childNodes[0],
"spelling")', '6', function() { |
| 45 testEditable.removeChild(testEditable.childNodes[0]); | 45 testEditable.removeChild(testEditable.childNodes[0]); |
| 46 finishJSTest(); | 46 finishJSTest(); |
| 47 }, 5000 /* huge text needs more time to be spell checked */); | 47 }, 5000 /* huge text needs more time to be spell checked */); |
| 48 } | 48 } |
| 49 </script> | 49 </script> |
| 50 </body> | 50 </body> |
| 51 </html> | 51 </html> |
| OLD | NEW |