| internals.settings.setSmartInsertDeleteEnabled(false); |
| internals.settings.setSelectTrailingWhitespaceEnabled(true); |
| internals.settings.setEditingBehavior('win'); |
| var div = document.getElementById("div"); |
| var sel = window.getSelection(); |
| sel.modify("move", "forward", "word"); |
| sel.modify("move", "forward", "word"); |
| sel.modify("move", "backward", "character"); |
| sel.modify("extend", "backward", "word"); |
| testRunner.execCommand("DeleteForward"); |
| <title>Editing Test</title> |
| This test verifies that smart insert and delete can be disabled at test time.<br> |
| If viewing in a browser, you should see the words "foo bar baz".<br> |
| If using a version of testRunner with this functionality, you should see "foo baz". (two spaces between the words)<br> |
| If using a version of testRunner without this functionality, you should see "foo baz". (one space between the words)<br> |
| <div contenteditable="true" id="div"> |