Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Unified Diff: LayoutTests/editing/caret/caret-pointer-direction-RTL.html

Issue 275563003: Change caret to show language direction (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP patch for directional caret Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698