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

Unified Diff: LayoutTests/fast/forms/button/button-reset-focus-by-mouse-then-keydown.html

Issue 16194013: Mouse press should focus on any types of form controls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase 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
Index: LayoutTests/fast/forms/button/button-reset-focus-by-mouse-then-keydown.html
diff --git a/LayoutTests/fast/forms/button/button-reset-focus-by-mouse-then-keydown.html b/LayoutTests/fast/forms/button/button-reset-focus-by-mouse-then-keydown.html
new file mode 100644
index 0000000000000000000000000000000000000000..4f0c7037f39394ef4b90b439db3f5a0a0c861c1f
--- /dev/null
+++ b/LayoutTests/fast/forms/button/button-reset-focus-by-mouse-then-keydown.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<body>
+<script src="../resources/common.js"></script>
+<button type="reset">Reset</button>
+<!-- A keydown event after mouse-focus should draw a focus ring. -->
+<script>
+eventSender.mouseMoveTo(800, 600);
+clickElement(document.querySelector('button'));
+eventSender.keyDown('leftShift');
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698