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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/select-option-accesskey-crash.html

Issue 1509853008: Move select/option/optgroup-related tests in fast/forms to fast/forms/select. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
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 </head> 5 </head>
6 <body> 6 <body>
7 <form> 7 <form>
8 <select id="target"> 8 <select id="target">
9 <option accesskey="x">foo</option> 9 <option accesskey="x">foo</option>
10 </select> 10 </select>
11 </form> 11 </form>
12 <p id="description"></p> 12 <p id="description"></p>
13 <div id="console"></div> 13 <div id="console"></div>
14 <script> 14 <script>
15 description('This test is to ensure that we do not crash when selecting an item from a menu list in a list box through an access key.') 15 description('This test is to ensure that we do not crash when selecting an item from a menu list in a list box through an access key.')
16 16
17 if (window.testRunner) { 17 if (window.testRunner) {
18 testRunner.dumpAsText(); 18 testRunner.dumpAsText();
19 19
20 var selectElement = document.getElementById('target'); 20 var selectElement = document.getElementById('target');
21 selectElement.focus(); 21 selectElement.focus();
22 if (window.eventSender) { 22 if (window.eventSender) {
23 eventSender.keyDown('x', 'accessKey'); 23 eventSender.keyDown('x', 'accessKey');
24 testPassed('Did not crash'); 24 testPassed('Did not crash');
25 } 25 }
26 } 26 }
27 </script> 27 </script>
28 </body> 28 </body>
29 </html> 29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698