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

Unified Diff: third_party/WebKit/LayoutTests/editing/selection/move-cursor-over-uneditable-in-contenteditable.html

Issue 2541153004: Keep caret show around non-editable element under editable element
Patch Set: add test case Created 4 years 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: third_party/WebKit/LayoutTests/editing/selection/move-cursor-over-uneditable-in-contenteditable.html
diff --git a/third_party/WebKit/LayoutTests/editing/selection/move-cursor-over-uneditable-in-contenteditable.html b/third_party/WebKit/LayoutTests/editing/selection/move-cursor-over-uneditable-in-contenteditable.html
new file mode 100644
index 0000000000000000000000000000000000000000..29a4982e194182c59c210672612bf073a19c3908
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/editing/selection/move-cursor-over-uneditable-in-contenteditable.html
@@ -0,0 +1,15 @@
+<!doctype HTML>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script src="../assert_selection.js"></script>
+<script>
+test(() => assert_selection('<div contenteditable>editable1| <i contenteditable="false">readonly1</i></div><div contenteditable>editable2 <i contenteditable="false">readonly2</i></div><div>readonly3</div',
+ selection => {
+ if (window.eventSender) {
+ for (i = 0; i < 13; i++)
+ eventSender.keyDown('ArrowRight');
+ }
+ },
+ '<div contenteditable>editable1 <i contenteditable="false">readonly1</i></div><div contenteditable>editable2 |<i contenteditable="false">readonly2</i></div><div>readonly3</div>'),
+ 'contenteditable should not lose selection near inline non-editable element');
+</script>

Powered by Google App Engine
This is Rietveld 408576698