blob: a8d5c10f9de56ce451aa1d2b91452f8083a0a8b8 [file] [log] [blame]
<div contentEditable="true" style="font-family: monospace;">
<p>first line.. test test test test -<span id="target" style="background-color:green">[ ]</span> test test test<br/></p>
<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>
</div>
<div id="results">FAILED</div>
<script src="../editing.js"></script>
<script>
function editingTest()
{
execMoveSelectionBackwardByLineCommand();
// Verify that we ended up in "target".
if (window.getSelection().anchorNode.parentNode == document.getElementById("target"))
document.getElementById("results").innerText = "PASS";
}
runDumpAsTextEditingTest(false);
</script>