| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src=../../../../fast/js/resources/js-test-pre.js language="javascript" t
ype="text/javascript"></script> | 4 <script src=../../fast/js/resources/js-test-pre.js language="javascript" type="t
ext/javascript"></script> |
| 5 <title>Testing moving cursor to a misspelled word</title> | 5 <title>Testing moving cursor to a misspelled word</title> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <div id="src" contenteditable="true" spellcheck="true"></div><br/> | 8 <div id="src" contenteditable="true" spellcheck="true"></div><br/> |
| 9 <script language="javascript"> | 9 <script language="javascript"> |
| 10 description('Test if Chrome spellchecks a word again when changing a misspelled
word.' + | 10 description('Test if Chrome spellchecks a word again when changing a misspelled
word.' + |
| 11 'To test manually, type a misspelled word "zz " and type a backspace
key twice.' + | 11 'To test manually, type a misspelled word "zz " and type a backspace
key twice.' + |
| 12 'This test succeeds when "z" is not marked as misspelled.'); | 12 'This test succeeds when "z" is not marked as misspelled.'); |
| 13 | 13 |
| 14 jsTestIsAsync = true; | 14 jsTestIsAsync = true; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 33 var hasMarker = internals.hasSpellingMarker(document, 0, 1); | 33 var hasMarker = internals.hasSpellingMarker(document, 0, 1); |
| 34 if (hasMarker && --retryCount > 0) { | 34 if (hasMarker && --retryCount > 0) { |
| 35 window.setTimeout(verifyMarker, 1); | 35 window.setTimeout(verifyMarker, 1); |
| 36 return; | 36 return; |
| 37 } | 37 } |
| 38 shouldBeFalse('internals.hasSpellingMarker(document, 0, 1)'); | 38 shouldBeFalse('internals.hasSpellingMarker(document, 0, 1)'); |
| 39 finishJSTest(); | 39 finishJSTest(); |
| 40 } | 40 } |
| 41 window.setTimeout(verifyMarker, 1); | 41 window.setTimeout(verifyMarker, 1); |
| 42 </script> | 42 </script> |
| 43 <script src="../../../../fast/js/resources/js-test-post.js"></script> | 43 <script src="../../fast/js/resources/js-test-post.js"></script> |
| 44 </body> | 44 </body> |
| 45 </html> | 45 </html> |
| OLD | NEW |