1 <script src=
"../../resources/dump-as-markup.js"></script>
2 <p id=
"description">This tests for a bug in endOfLine.
</p>
4 <div id=
"test" contenteditable=
"true" style=
"white-space:pre;">You should not see this paragraph unless the command has been undone.
5 There should be three paragraphs in this editable region.
6 The first one should be empty.
</div>
9 function runTestsOn(platform
) {
10 var e
= document
.getElementById("test");
11 var s
= window
.getSelection();
14 internals
.settings
.setEditingBehavior(platform
);
17 s
.modify("extend", "forward", "lineBoundary");
18 document
.execCommand("Delete");
19 Markup
.dump("test", "on " + platform
);
20 document
.execCommand("undo");
21 Markup
.dump("test", "after undo on " + platform
);
24 if (window
.testRunner
)
25 testRunner
.dumpEditingCallbacks();
26 Markup
.description(description
.textContent
);
27 Markup
.dump("test", "initial state");
31 runTestsOn("android");