| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 `${shouldSelect ? 'selects' : 'does not select'} ` + | 53 `${shouldSelect ? 'selects' : 'does not select'} ` + |
| 54 `the correctly spelled word on ${platform}`); | 54 `the correctly spelled word on ${platform}`); |
| 55 }) | 55 }) |
| 56 | 56 |
| 57 heldTest.done(); | 57 heldTest.done(); |
| 58 } | 58 } |
| 59 | 59 |
| 60 spellcheck_test( | 60 spellcheck_test( |
| 61 '<input type="text" value="wellcome home.">', | 61 '<input type="text" value="wellcome home.">', |
| 62 document => document.querySelector('input').focus(), | 62 document => document.querySelector('input').focus(), |
| 63 '<input type="text" value="_wellcome_ home.">', | 63 '<input type="text" value="#wellcome# home.">', |
| 64 { | 64 { |
| 65 title: 'Mark misspelling in the initial text of an input field.', | 65 title: 'Mark misspelling in the initial text of an input field.', |
| 66 callback: sample => contextClickSelectionTests( | 66 callback: sample => contextClickSelectionTests( |
| 67 sample.document.querySelector('input')) | 67 sample.document.querySelector('input')) |
| 68 }); | 68 }); |
| 69 </script> | 69 </script> |
| OLD | NEW |