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