| 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 <script> | 6 <script> |
| 7 spellcheck_test( | 7 spellcheck_test( |
| 8 [ | 8 [ |
| 9 '<div id="container" spellcheck="false">', | 9 '<div id="container" spellcheck="false">', |
| 10 '<div>|asd is misspelled.</div>', | 10 '<div>|asd is misspelled.</div>', |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 title: 'No spelling marker in designMode when spellcheck=false.', | 23 title: 'No spelling marker in designMode when spellcheck=false.', |
| 24 callback: sample => spellcheck_test( | 24 callback: sample => spellcheck_test( |
| 25 sample, | 25 sample, |
| 26 document => { | 26 document => { |
| 27 document.getElementById('container').setAttribute('spellcheck', 'tru
e'); | 27 document.getElementById('container').setAttribute('spellcheck', 'tru
e'); |
| 28 // Do any selection change to force spellchecking after attribute ch
ange. | 28 // Do any selection change to force spellchecking after attribute ch
ange. |
| 29 document.getSelection().modify('move', 'forward', 'line'); | 29 document.getSelection().modify('move', 'forward', 'line'); |
| 30 }, | 30 }, |
| 31 [ | 31 [ |
| 32 '<div id="container" spellcheck="true">', | 32 '<div id="container" spellcheck="true">', |
| 33 '<div>_asd_ is misspelled.</div>', | 33 '<div>#asd# is misspelled.</div>', |
| 34 '</div>' | 34 '</div>' |
| 35 ].join(''), | 35 ].join(''), |
| 36 'Spelling marker appears when changing spellcheck from false to true.'
) | 36 'Spelling marker appears when changing spellcheck from false to true.'
) |
| 37 }); | 37 }); |
| 38 </script> | 38 </script> |
| OLD | NEW |