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

Unified Diff: LayoutTests/fast/forms/checkbox/checkbox-focus-by-mouse-expected.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/checkbox/checkbox-focus-by-mouse-expected.html
diff --git a/LayoutTests/fast/forms/checkbox/checkbox-focus-by-mouse-expected.html b/LayoutTests/fast/forms/checkbox/checkbox-focus-by-mouse-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..0cce5db1201361e09070ad7f99c5e619e469fa68
--- /dev/null
+++ b/LayoutTests/fast/forms/checkbox/checkbox-focus-by-mouse-expected.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<body>
+<script>
+enablePixelTesting = true;
+</script>
+<script src="../../js/resources/js-test-pre.js"></script>
+<script src="../resources/common.js"></script>
+
+<input type="checkbox" checked>
+<div id="console"></div>
+
+<script>
+eventSender.mouseMoveTo(800, 600);
+description('Clicking on a form control should focus on it.');
+testPassed('Focus event was dispatched.');
+hoverOverElement(document.querySelector('input'));
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698