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

Unified Diff: LayoutTests/editing/caret/caret-pointer-direction-LTR.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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/editing/caret/caret-pointer-direction-LTR-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/caret/caret-pointer-direction-LTR.html
diff --git a/LayoutTests/editing/caret/caret-pointer-direction-LTR.html b/LayoutTests/editing/caret/caret-pointer-direction-LTR.html
new file mode 100644
index 0000000000000000000000000000000000000000..90e74f24accae61d9d9d068bed1b5af57449e16a
--- /dev/null
+++ b/LayoutTests/editing/caret/caret-pointer-direction-LTR.html
@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
+<title>Caret LTR Direction Test</title>
+<style>
+.editing {
+ border: 2px solid red;
+ padding: 12px;
+ font-size: 24px;
+ width: 400px;
+ direction: ltr;
+ 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 (LTR) as per Input.
+</p>
+<div contenteditable id="root" class="editing">
+<span id="test">Caret in LTR Language</span>
+</div>
+
+<script>
+runEditingTest();
+</script>
+
+</body>
+</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/editing/caret/caret-pointer-direction-LTR-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698