Chromium Code Reviews

Unified Diff: LayoutTests/fast/forms/range/range-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.
Jump to:
View side-by-side diff with in-line comments
Index: LayoutTests/fast/forms/range/range-focus-by-mouse.html
diff --git a/LayoutTests/fast/forms/range/range-focus-by-mouse.html b/LayoutTests/fast/forms/range/range-focus-by-mouse.html
new file mode 100644
index 0000000000000000000000000000000000000000..f9872cf7f98ff9e2fda0a63dc0091db815dbf7cc
--- /dev/null
+++ b/LayoutTests/fast/forms/range/range-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="range">
+
+<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