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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/menulist-popup-open-by-synthetic-event.html

Issue 1935993003: SELECT element: Ignore synthetic events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix openPicker() Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <div id="log"></div>
6 <select id=t><option>Option 1</option></select>
7 <script>
8 test(function() {
9 var mevent = document.createEvent('MouseEvents');
10 mevent.initMouseEvent('mousedown', true, true, window);
11 var select = document.querySelector('select');
12 select.offsetTop;
13 select.dispatchEvent(mevent);
14 assert_false(internals.isSelectPopupVisible(select));
15 }, 'SELECT element should not open a popup menu by a synthetic event.');
16 </script>
17 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698