Index: LayoutTests/platform/mac/fast/forms/select/menulist-click.html |
diff --git a/LayoutTests/platform/mac/fast/forms/select/menulist-click.html b/LayoutTests/platform/mac/fast/forms/select/menulist-click.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4861ea2bf71eedaa35bf0ca367275a7b1ed956dd |
--- /dev/null |
+++ b/LayoutTests/platform/mac/fast/forms/select/menulist-click.html |
@@ -0,0 +1,24 @@ |
+<!DOCTYPE html> |
+<body> |
+<script src="../../../../../resources/js-test.js"></script> |
+<script src="../../../../../fast/forms/resources/common.js"></script> |
+<select> |
+<option>option 1</option> |
+<option>option 2</option> |
+</select> |
+<script> |
+ |
+var clickEventCounter = 0; |
+var select = document.querySelector('select'); |
+select.addEventListener('click', function() { clickEventCounter++; }, false); |
+hoverOverElement(select); |
+eventSender.mouseDown(); |
+setTimeout(function() { |
+ select.blur(); |
+ description('Check if mosuedown without mouseup on a SELECT element dispatches a click event.'); |
+ shouldBe('clickEventCounter', '1'); |
+ finishJSTest(); |
+}, 1); |
+jsTestIsAsync = true; |
+</script> |
+</body> |