Index: LayoutTests/fast/forms/submit/submit-focus-by-mouse.html |
diff --git a/LayoutTests/fast/forms/submit/submit-focus-by-mouse.html b/LayoutTests/fast/forms/submit/submit-focus-by-mouse.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..65a1abac0dfab7eea2a4c0cb5fe0bfda9efe5838 |
--- /dev/null |
+++ b/LayoutTests/fast/forms/submit/submit-focus-by-mouse.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<body> |
+<script> |
+enablePixelTesting = true; |
+</script> |
+<script src="../../js/resources/js-test-pre.js"></script> |
+<script src="../resources/common.js"></script> |
+ |
+<input type="submit"> |
+<div id="console"></div> |
+ |
+<script> |
+eventSender.mouseMoveTo(800, 600); |
+description('Clicking on a form control should focus on it.'); |
+var target = document.querySelector('input'); |
+target.addEventListener('focus', function() { |
+ testPassed('Focus event was dispatched.'); |
+}, false); |
+clickElement(target); |
+</script> |
+<script src="../../js/resources/js-test-post.js"></script> |
+</body> |