| 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>It should be upper |case.</div>', | 10 '<div contenteditable>It should be upper |case.</div>', |
| 10 '', | 11 '', |
| 11 '<div contenteditable>It should be #upper case#.</div>', | 12 '<div contenteditable>It should be #upper case#.</div>', |
| 12 { | 13 { |
| 13 title: 'Has marker on initial multi-word misspelling.', | 14 title: 'Has marker on initial multi-word misspelling.', |
| 14 callback: sample => spellcheck_test( | 15 callback: sample => spellcheck_test( |
| 15 sample, | 16 sample, |
| 16 document => document.execCommand('insertText', false, '\n'), | 17 document => document.execCommand('insertText', false, '\n'), |
| 17 '<div contenteditable>It should be upperĀ <div>case.</div></div>', | 18 '<div contenteditable>It should be upperĀ <div>case.</div></div>', |
| 18 'Marker disappears after inserting newline in multi-word misspelling.'
) | 19 'Marker disappears after inserting newline in multi-word misspelling.'
) |
| 19 }); | 20 }); |
| 20 </script> | 21 </script> |
| OLD | NEW |