Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Side by Side Diff: third_party/WebKit/LayoutTests/editing/spelling/spellcheck-paste-continuous-disabled.html

Issue 2251693003: Rename "ContinuousSpellChecking" to "SpellChecking" in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698