upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / move-selection-back-line-strict.html
1 <!DOCTYPE html>
2 <html>
3 <body>
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>
7 </div>
8 <div id="results">FAILED</div>
9 <script src="../editing.js"></script>
10 <script>
11 function editingTest()
12 {
13     execMoveSelectionBackwardByLineCommand();
14
15     // Verify that we ended up in "target".
16     if (window.getSelection().anchorNode.parentNode == document.getElementById("target"))
17         document.getElementById("results").innerText = "PASS";
18 }
19 runDumpAsTextEditingTest(false);
20 </script>
21 </body>
22 </html>