| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../resources/testharness.js"></script> | 4 <script src="../../resources/testharness.js"></script> |
| 5 <script src="../../resources/testharnessreport.js"></script> | 5 <script src="../../resources/testharnessreport.js"></script> |
| 6 <script src="resources/util.js"></script> | 6 <script src="resources/util.js"></script> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <div> | 9 <div> |
| 10 <div id="src" contenteditable></div><br/> | 10 <div id="src" contenteditable></div><br/> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 function() { | 25 function() { |
| 26 document.execCommand('InsertText', false, 'a'); | 26 document.execCommand('InsertText', false, 'a'); |
| 27 document.execCommand('InsertText', false, 'p'); | 27 document.execCommand('InsertText', false, 'p'); |
| 28 document.execCommand('InsertText', false, 'p'); | 28 document.execCommand('InsertText', false, 'p'); |
| 29 document.execCommand('InsertText', false, 'l'); | 29 document.execCommand('InsertText', false, 'l'); |
| 30 document.execCommand('InsertText', false, 'e'); | 30 document.execCommand('InsertText', false, 'e'); |
| 31 }, | 31 }, |
| 32 function() { | 32 function() { |
| 33 window.getSelection().selectAllChildren(srcNode); | 33 window.getSelection().selectAllChildren(srcNode); |
| 34 document.execCommand('Copy'); | 34 document.execCommand('Copy'); |
| 35 internals.setContinuousSpellCheckingEnabled(false); | 35 internals.setSpellCheckingEnabled(false); |
| 36 document.execCommand('Paste'); | 36 document.execCommand('Paste'); |
| 37 } | 37 } |
| 38 ]; | 38 ]; |
| 39 | 39 |
| 40 assertions = [ | 40 assertions = [ |
| 41 () => {}, | 41 () => {}, |
| 42 () => assert_true(internals.hasSpellingMarker(document, 0, 2)), | 42 () => assert_true(internals.hasSpellingMarker(document, 0, 2)), |
| 43 () => assert_false(internals.hasSpellingMarker(document, 0, 2)) | 43 () => assert_false(internals.hasSpellingMarker(document, 0, 2)) |
| 44 ]; | 44 ]; |
| 45 | 45 |
| 46 runSpellingTest(steps, assertions, 'Blink does not spellcheck text when pasting
text and continuous spellcheck is turned off.') | 46 runSpellingTest(steps, assertions, 'Blink does not spellcheck text when pasting
text and continuous spellcheck is turned off.') |
| 47 </script> | 47 </script> |
| 48 </body> | 48 </body> |
| 49 </html> | 49 </html> |
| OLD | NEW |