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

Unified 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, 6 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 | « no previous file | LayoutTests/editing/caret/caret-is-hidden-when-no-focus-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/editing/caret/caret-is-hidden-when-no-focus.html
diff --git a/LayoutTests/editing/caret/caret-is-hidden-when-no-focus.html b/LayoutTests/editing/caret/caret-is-hidden-when-no-focus.html
new file mode 100644
index 0000000000000000000000000000000000000000..adb2a86b5b70c4504053326a3128e6d387089d36
--- /dev/null
+++ b/LayoutTests/editing/caret/caret-is-hidden-when-no-focus.html
@@ -0,0 +1,18 @@
+<p>Caret should be hidden when no focus</p>
+Manual steps:
+<ol>
+<li>Click middle of "edit me!" to show caret.</li>
+<li>Click checkbox.</li>
+<li>Caret should be hidden.</li>
+</ol>
+<div contenteditable="true">edit me!</div>
+<input type="checkbox">
+<script>
+document.querySelector('div[contenteditable="true"]').focus();
+if (window.eventSender) {
+ var checkbox = document.querySelector('input');
+ eventSender.mouseMoveTo(checkbox.offsetLeft + 5, checkbox.offsetTop + 5);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+}
+</script>
« 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