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

Side by Side Diff: content/test/data/accessibility/event/menulist-popup.html

Issue 1186623002: This test needs to use EventSender instead of initMouseEvent so that the pending fix for 423975 can… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 @WIN-DENY:EVENT_OBJECT_STATECHANGE*role=ROLE_SYSTEM_LIST* 2 @WIN-DENY:EVENT_OBJECT_STATECHANGE*role=ROLE_SYSTEM_LIST*
3 @WIN-DENY:EVENT_OBJECT_REORDER* 3 @WIN-DENY:EVENT_OBJECT_REORDER*
4 @MAC-DENY:AXLayoutComplete* 4 @MAC-DENY:AXLayoutComplete*
5 --> 5 -->
6 <!DOCTYPE html> 6 <!DOCTYPE html>
7 <html> 7 <html>
8 <body> 8 <body>
9 <select> 9 <select>
10 <option selected>Apple</option> 10 <option selected>Apple</option>
11 <option>Orange</option> 11 <option>Orange</option>
12 <option>Banana</option> 12 <option>Banana</option>
13 </select> 13 </select>
14 <script> 14 <script>
15 function go() { 15 function go() {
16 var select = document.querySelector('select'); 16 var select = document.querySelector('select');
17 var event = document.createEvent('MouseEvents'); 17 var rect = select.options[0].getBoundingClientRect();
18 event.initMouseEvent('mousedown', true, true, window); 18 eventSender.mouseMoveTo(rect.left + 1, rect.top + 1);
19 select.dispatchEvent(event); 19 eventSender.mouseDown(0);
20 } 20 }
21 </script> 21 </script>
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698