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

Side by Side Diff: LayoutTests/editing/caret/caret-is-hidden-when-no-focus.html

Issue 17005008: Don't show caret when containing element doesn't have focus (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-06-28T17:13:40 Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/editing/caret/caret-is-hidden-when-no-focus-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <p>Caret should be hidden when no focus</p>
2 Manual steps:
3 <ol>
4 <li>Click middle of "edit me!" to show caret.</li>
5 <li>Click checkbox.</li>
6 <li>Caret should be hidden.</li>
7 </ol>
8 <div contenteditable="true">edit me!</div>
9 <input type="checkbox">
10 <script>
11 document.querySelector('div[contenteditable="true"]').focus();
12 if (window.eventSender) {
13 var checkbox = document.querySelector('input');
14 eventSender.mouseMoveTo(checkbox.offsetLeft + 5, checkbox.offsetTop + 5);
15 eventSender.mouseDown();
16 eventSender.mouseUp();
17 }
18 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/caret/caret-is-hidden-when-no-focus-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698