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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!doctype HTML>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script src="../assert_selection.js"></script>
5 <script>
6 test(() => assert_selection('<div contenteditable>editable1| <i contenteditable= "false">readonly1</i></div><div contenteditable>editable2 <i contenteditable="fa lse">readonly2</i></div><div>readonly3</div',
7 selection => {
8 if (window.eventSender) {
9 for (i = 0; i < 13; i++)
10 eventSender.keyDown('ArrowRight');
11 }
12 },
13 '<div contenteditable>editable1 <i contenteditable="false">readonly1</i></div>< div contenteditable>editable2 |<i contenteditable="false">readonly2</i></div><di v>readonly3</div>'),
14 'contenteditable should not lose selection near inline non-editable element');
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698