4 <div contentEditable=
"true" style=
"font-family: monospace;">
5 <p>first line.. test test test test -
<span id=
"target" style=
"background-color:green">[ ]
</span> test test test
<br/></p>
6 <p>second line. Put your cursor here [
<span id=
"test"> </span>] and press the up arrow. The cursor should appear in the green box on the first line
</p>
8 <div id=
"results">FAILED
</div>
9 <script src=
"../editing.js"></script>
11 function editingTest()
13 execMoveSelectionBackwardByLineCommand();
15 // Verify that we ended up in "target".
16 if (window
.getSelection().anchorNode
.parentNode
== document
.getElementById("target"))
17 document
.getElementById("results").innerText
= "PASS";
19 runDumpAsTextEditingTest(false);