upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / editing / execCommand / move-selection-back-line-rtl.html
1 <!DOCTYPE html>
2 <head>
3 <meta http-equiv="content-type" content="text/html; charset=utf-8">
4 </head>
5 <body>
6 <p>Move the caret upwards from [ ] on the second line. The caret should appear in the green box inside [ ] on the first line.</p>
7 <div dir="rtl" contentEditable="true" style="font-family: monospace;">
8 <p dir="rtl">קו <span id="target" style="background-color:green">[ ]</span> ראשון<br></p>
9 <p dir="rtl">קו <span id="test">[ ]</span> שני<br></p>
10 </div>
11 <div id="results">FAILED</div>
12 <script src="../editing.js"></script>
13 <script>
14 function editingTest()
15 {
16     execMoveSelectionForwardByCharacterCommand();
17     execMoveSelectionBackwardByLineCommand();
18
19     // Verify that we ended up in "target".
20     if (window.getSelection().anchorNode.parentNode == document.getElementById("target"))
21         document.getElementById("results").innerText = "PASS";
22 }
23 runDumpAsTextEditingTest(false);
24 </script>