Index: LayoutTests/editing/caret/caret-pointer-direction-RTL.html |
diff --git a/LayoutTests/editing/caret/caret-pointer-direction-RTL.html b/LayoutTests/editing/caret/caret-pointer-direction-RTL.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..61fbe64b5110a949b15383c5ebcad7b018d01862 |
--- /dev/null |
+++ b/LayoutTests/editing/caret/caret-pointer-direction-RTL.html |
@@ -0,0 +1,39 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> |
+<title>Caret RTL Direction Test</title> |
+<style> |
+.editing { |
+ border: 2px solid red; |
+ padding: 12px; |
+ font-size: 24px; |
+ width: 400px; |
+ direction: rtl; |
+ unicode-bidi: -webkit-isolate; |
+} |
+</style> |
+<script src=../editing.js language="JavaScript" type="text/JavaScript" ></script> |
+ |
+<script> |
+ |
+function editingTest() { |
+ moveSelectionForwardByLineCommand(); |
+ moveSelectionLeftByCharacterCommand(); |
+} |
+ |
+</script> |
+</head> |
+<body> |
+<p>Tests display caret direction (RTL) as per Input. |
+</p> |
+<div contenteditable id="root" class="editing"> |
+<span id="test">Caret in RTL Language نلا</span> |
+</div> |
+ |
+<script> |
+runEditingTest(); |
+</script> |
+ |
+</body> |
+</html> |