| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/testharness.js"></script> | 4 <script src="../../resources/testharness.js"></script> |
| 5 <script src="../../resources/testharnessreport.js"></script> | 5 <script src="../../resources/testharnessreport.js"></script> |
| 6 <script src="../assert_selection.js"></script> | 6 <script src="../assert_selection.js"></script> |
| 7 <script src="spellcheck_test.js"></script> | 7 <script src="spellcheck_test.js"></script> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 spellcheck_test( | 10 spellcheck_test( |
| 11 '<div contenteditable>zz |</div>', | 11 '<div contenteditable>zz |</div>', |
| 12 '', | 12 '', |
| 13 '<div contenteditable>_zz_ </div>', | 13 '<div contenteditable>#zz# </div>', |
| 14 { | 14 { |
| 15 title: 'Has marker on initially misspelled word.', | 15 title: 'Has marker on initially misspelled word.', |
| 16 callback: sample => spellcheck_test( | 16 callback: sample => spellcheck_test( |
| 17 sample, | 17 sample, |
| 18 document => { | 18 document => { |
| 19 testRunner.execCommand('DeleteBackward'); | 19 testRunner.execCommand('DeleteBackward'); |
| 20 testRunner.execCommand('DeleteBackward'); | 20 testRunner.execCommand('DeleteBackward'); |
| 21 document.execCommand('InsertText', false, ' '); | 21 document.execCommand('InsertText', false, ' '); |
| 22 }, | 22 }, |
| 23 '<div contenteditable>z </div>', | 23 '<div contenteditable>z </div>', |
| 24 'Blink spellchecks a word again when changing a misspelled word') | 24 'Blink spellchecks a word again when changing a misspelled word') |
| 25 }); | 25 }); |
| 26 </script> | 26 </script> |
| OLD | NEW |