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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select-popup/popup-menu-crash-on-cancel.html

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed Created 4 years, 5 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="../resources/common.js"></script> 5 <script src="../resources/common.js"></script>
6 <script src="../resources/picker-common.js"></script> 6 <script src="../resources/picker-common.js"></script>
7 </head> 7 </head>
8 <body> 8 <body>
9 <select id="menu"> 9 <select id="menu">
10 <option selected>foo</option> 10 <option selected>foo</option>
11 <option>bar</option> 11 <option>bar</option>
12 </select> 12 </select>
13 <script> 13 <script>
14 var menu = document.getElementById('menu'); 14 var menu = document.getElementById('menu');
15 var picker = null; 15 var picker = null;
16 function openPickerErrorCallback() { 16 function openPickerErrorCallback() {
17 testFailed('picker didn\'t open') 17 testFailed('picker didn\'t open')
18 finishJSTest(); 18 finishJSTest();
19 } 19 }
20 menu.onchange = function() { 20 menu.onchange = function() {
21 menu.multiple = true; 21 menu.multiple = true;
22 }; 22 };
23 openPicker(menu, test1, openPickerErrorCallback); 23 openPicker(menu, test1, openPickerErrorCallback);
24 description('Test for crbug.com/477932 . Pass if we don\'t crash.'); 24 description('Test for crbug.com/477932 . Pass if we don\'t crash.');
25 function test1() { 25 function test1() {
26 picker = window.internals.pagePopupWindow.global.picker; 26 picker = window.internals.pagePopupWindow.global.picker;
27 eventSender.keyDown('downArrow'); 27 eventSender.keyDown('ArrowDown');
28 eventSender.keyDown('escape'); 28 eventSender.keyDown('Escape');
29 29
30 finishJSTest(); 30 finishJSTest();
31 } 31 }
32 </script> 32 </script>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698