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

Unified Diff: LayoutTests/editing/caret/caret-is-hidden-when-no-focus-expected.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 | « LayoutTests/editing/caret/caret-is-hidden-when-no-focus.html ('k') | Source/core/dom/Document.cpp » ('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-expected.html
diff --git a/LayoutTests/editing/caret/caret-is-hidden-when-no-focus-expected.html b/LayoutTests/editing/caret/caret-is-hidden-when-no-focus-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..7060ac7793b4f670a3da8d8f6747af6a8a6c1463
--- /dev/null
+++ b/LayoutTests/editing/caret/caret-is-hidden-when-no-focus-expected.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>
+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 | « LayoutTests/editing/caret/caret-is-hidden-when-no-focus.html ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698