| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <script src="../../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <script src="../assert_selection.js"></script> | 4 <script src="../assert_selection.js"></script> |
| 5 <script src="spellcheck_test.js"></script> | 5 <script src="spellcheck_test.js"></script> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 spellcheck_test( | 8 spellcheck_test( |
| 9 '<div contenteditable>zz |</div>', | 9 '<div contenteditable>zz |</div>', |
| 10 '', | 10 '', |
| 11 '<div contenteditable>_zz_ </div>', | 11 '<div contenteditable>#zz# </div>', |
| 12 { | 12 { |
| 13 title: 'Has marker on initially misspelled text', | 13 title: 'Has marker on initially misspelled text', |
| 14 callback: sample => spellcheck_test( | 14 callback: sample => spellcheck_test( |
| 15 sample, | 15 sample, |
| 16 document => document.getSelection().modify('move', 'backward', 'charac
ter'), | 16 document => document.getSelection().modify('move', 'backward', 'charac
ter'), |
| 17 '<div contenteditable>_zz_ </div>', | 17 '<div contenteditable>#zz# </div>', |
| 18 'Moving cursor to misspelled word does not remove marker.') | 18 'Moving cursor to misspelled word does not remove marker.') |
| 19 }); | 19 }); |
| 20 </script> | 20 </script> |
| OLD | NEW |