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

Unified Diff: LayoutTests/fast/forms/radio/radio-focus-by-mouse.html

Issue 13888009: Mouse press should focus on any types of form controls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/radio/radio-focus-by-mouse.html
diff --git a/LayoutTests/fast/forms/radio/radio-focus-by-mouse.html b/LayoutTests/fast/forms/radio/radio-focus-by-mouse.html
new file mode 100644
index 0000000000000000000000000000000000000000..d2e3ec9c7ca8bb051b5b6f9f67f0798506700ad4
--- /dev/null
+++ b/LayoutTests/fast/forms/radio/radio-focus-by-mouse.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<body>
+<script src="../../js/resources/js-test-pre.js"></script>
+<script src="../resources/common.js"></script>
+
+<input type="radio">
+
+<script>
+description('Clicking on a form control should focus on it.');
+var target = document.getElementsByTagName('input')[0];
+target.addEventListener('focus', function() { testPassed('Focus event was dispatched.'); }, false);
+clickElement(target);
+target.remove();
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698