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

Side by Side Diff: LayoutTests/editing/deleting/smart-editing-disabled-win.html

Issue 14930006: Ctrl+Shift+Right in Windows should select the spacing after the word (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added expectations for chromium-mac for delete-cell-contents-win.html Created 7 years, 7 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 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 4
5 if (window.testRunner) { 5 if (window.testRunner) {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 internals.settings.setSmartInsertDeleteEnabled(false); 7 internals.settings.setSmartInsertDeleteEnabled(false);
8 internals.settings.setSelectTrailingWhitespaceEnabled(true); 8 internals.settings.setSelectTrailingWhitespaceEnabled(true);
9 } 9 }
10 if (window.internals) 10 if (window.internals)
11 internals.settings.setEditingBehavior('mac'); 11 internals.settings.setEditingBehavior('win');
12 12
13 function editingTest() { 13 function editingTest() {
14 var div = document.getElementById("div"); 14 var div = document.getElementById("div");
15 var sel = window.getSelection(); 15 var sel = window.getSelection();
16 16
17 sel.setPosition(div, 0); 17 sel.setPosition(div, 0);
18 sel.modify("move", "forward", "word"); 18 sel.modify("move", "forward", "word");
19 sel.modify("move", "forward", "word"); 19 sel.modify("move", "forward", "word");
20 sel.modify("move", "backward", "character");
20 sel.modify("extend", "backward", "word"); 21 sel.modify("extend", "backward", "word");
21 testRunner.execCommand("DeleteForward"); 22 testRunner.execCommand("DeleteForward");
22 } 23 }
23 24
24 </script> 25 </script>
25 <title>Editing Test</title> 26 <title>Editing Test</title>
26 </head> 27 </head>
27 <body> 28 <body>
28 This test verifies that smart insert and delete can be disabled at test time.<br > 29 This test verifies that smart insert and delete can be disabled at test time.<br >
29 If viewing in a browser, you should see the words "foo bar baz".<br> 30 If viewing in a browser, you should see the words "foo bar baz".<br>
30 If using a version of testRunner with this functionality, you should see "foo b az". (two spaces between the words)<br> 31 If using a version of testRunner with this functionality, you should see "foo b az". (two spaces between the words)<br>
31 If using a version of testRunner without this functionality, you should see "foo baz". (one space between the words)<br> 32 If using a version of testRunner without this functionality, you should see "foo baz". (one space between the words)<br>
32 </div> 33 </div>
33 </div> 34 </div>
34 35
35 <div contenteditable="true" id="div"> 36 <div contenteditable="true" id="div">
36 foo bar baz 37 foo bar baz
37 </div> 38 </div>
38 39
39 <script> 40 <script>
40 editingTest(); 41 editingTest();
41 </script> 42 </script>
42 43
43 </body> 44 </body>
44 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698