Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / execCommand / move-selection-back-line-rtl.html
blobd9fc67dbba3110f6fd4e673113d9779f165a19bc
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()
16 execMoveSelectionForwardByCharacterCommand();
17 execMoveSelectionBackwardByLineCommand();
19 // Verify that we ended up in "target".
20 if (window.getSelection().anchorNode.parentNode == document.getElementById("target"))
21 document.getElementById("results").innerText = "PASS";
23 runDumpAsTextEditingTest(false);
24 </script>