blob: 8f567dd29e4249e8b6fac312fbc6233845e16128 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<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>
</body>
</html>