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

Unified Diff: LayoutTests/platform/mac/fast/forms/select/menulist-click.html

Issue 118453006: Mac: Send a synthetic mouseup event when <select> popup menu is opened. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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
« no previous file with comments | « no previous file | LayoutTests/platform/mac/fast/forms/select/menulist-click-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/platform/mac/fast/forms/select/menulist-click-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698