| 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 test(() => assert_not_equals(window.internals, undefined), | 8 test(() => assert_not_equals(window.internals, undefined), |
| 9 'This test requires internals to set editing behavior.'); | 9 'This test requires internals to set editing behavior.'); |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 }, `Context clicking on exactly-selected "${sample.selection.toString()}" give
s suggestions "${expected}".`); | 38 }, `Context clicking on exactly-selected "${sample.selection.toString()}" give
s suggestions "${expected}".`); |
| 39 sample.remove(); | 39 sample.remove(); |
| 40 | 40 |
| 41 if (++testHolder.finishedCount == 2) | 41 if (++testHolder.finishedCount == 2) |
| 42 testHolder.done(); | 42 testHolder.done(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 spellcheck_test( | 45 spellcheck_test( |
| 46 '<div contenteditable>^wellcome| home.</div>', | 46 '<div contenteditable>^wellcome| home.</div>', |
| 47 '', | 47 '', |
| 48 '<div contenteditable>_wellcome_ home.</div>', | 48 '<div contenteditable>#wellcome# home.</div>', |
| 49 { | 49 { |
| 50 title: 'Has marker on initial misspelling.', | 50 title: 'Has marker on initial misspelling.', |
| 51 callback: sample => assertContextMenuSuggestion(sample, 'welcome') | 51 callback: sample => assertContextMenuSuggestion(sample, 'welcome') |
| 52 }); | 52 }); |
| 53 | 53 |
| 54 spellcheck_test( | 54 spellcheck_test( |
| 55 '<div contenteditable>It should be ^upper case|.</div>', | 55 '<div contenteditable>It should be ^upper case|.</div>', |
| 56 '', | 56 '', |
| 57 '<div contenteditable>It should be _upper case_.</div>', | 57 '<div contenteditable>It should be #upper case#.</div>', |
| 58 { | 58 { |
| 59 title: 'Has marker on initial multi-word misspelling.', | 59 title: 'Has marker on initial multi-word misspelling.', |
| 60 callback: sample => assertContextMenuSuggestion(sample, 'uppercase') | 60 callback: sample => assertContextMenuSuggestion(sample, 'uppercase') |
| 61 }); | 61 }); |
| 62 </script> | 62 </script> |
| OLD | NEW |