5 if (window
.testRunner
) {
6 testRunner
.dumpAsText();
7 internals
.settings
.setSmartInsertDeleteEnabled(false);
8 internals
.settings
.setSelectTrailingWhitespaceEnabled(true);
11 internals
.settings
.setEditingBehavior('win');
13 function editingTest() {
14 var div
= document
.getElementById("div");
15 var sel
= window
.getSelection();
18 sel
.modify("move", "forward", "word");
19 sel
.modify("move", "forward", "word");
20 sel
.modify("move", "backward", "character");
21 sel
.modify("extend", "backward", "word");
22 testRunner
.execCommand("DeleteForward");
26 <title>Editing Test
</title>
29 This test verifies that smart insert and delete can be disabled at test time.
<br>
30 If viewing in a browser, you should see the words
"foo bar baz".
<br>
31 If using a version of testRunner with this functionality, you should see
"foo baz". (two spaces 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>
36 <div contenteditable=
"true" id=
"div">