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

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

Issue 2024053003: Revert of Uses the activedescendant_changed event received from Blink to fire the right focus event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 <!-- 1 <!--
2 @MAC-DENY:AXLayoutComplete* 2 @MAC-DENY:AXLayoutComplete*
3 --> 3 -->
4 <!DOCTYPE html> 4 <!DOCTYPE html>
5 <html> 5 <html>
6 <body> 6 <body>
7 <select> 7 <select>
8 <option selected>Apple</option> 8 <option selected>Apple</option>
9 <option>Orange</option> 9 <option>Orange</option>
10 <option>Banana</option> 10 <option>Banana</option>
11 </select> 11 </select>
12 <script> 12 <script>
13 var comboBox = document.querySelector('select'); 13 document.querySelector('select').focus();
14 comboBox.focus();
15 // Expand the combo box.
16 var clickEvent = document.createEvent('MouseEvents');
17 clickEvent.initMouseEvent('mousedown', true, true, window);
18 comboBox.dispatchEvent(clickEvent);
19 function go() { 14 function go() {
20 document.querySelector('select').selectedIndex = 1; 15 document.querySelector('select').selectedIndex = 1;
21 } 16 }
22 </script> 17 </script>
23 </body> 18 </body>
24 </html> 19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698