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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/select/optgroup-clicking.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 <body onload="test()"> 3 <body onload="test()">
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 6
7 <form id="form"> 7 <form id="form">
8 <select size="10" id="listbox"> 8 <select size="10" id="listbox">
9 <optgroup label="Enabled" id="listbox_optgroup_enabled"> 9 <optgroup label="Enabled" id="listbox_optgroup_enabled">
10 <option value="listbox_e1" id="listbox_option_enabled">One</option> 10 <option value="listbox_e1" id="listbox_option_enabled">One</option>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 debug("\nClick disabled option - doesn't change selectedIndex"); 69 debug("\nClick disabled option - doesn't change selectedIndex");
70 mouseMoveToIndexInListbox(5 + 2, 'listbox'); // +2 for optgroup's 70 mouseMoveToIndexInListbox(5 + 2, 'listbox'); // +2 for optgroup's
71 eventSender.mouseDown(); 71 eventSender.mouseDown();
72 eventSender.mouseUp(); 72 eventSender.mouseUp();
73 shouldBe('$("listbox").selectedIndex', '1'); 73 shouldBe('$("listbox").selectedIndex', '1');
74 74
75 debug("\nMenu list with arrow key. The test is expected to fail on OSX becau se of a key binding difference."); 75 debug("\nMenu list with arrow key. The test is expected to fail on OSX becau se of a key binding difference.");
76 $("menulist").selectedIndex = 3; 76 $("menulist").selectedIndex = 3;
77 $("menulist").focus(); 77 $("menulist").focus();
78 eventSender.keyDown("downArrow"); 78 eventSender.keyDown("ArrowDown");
79 eventSender.keyDown("\n"); 79 eventSender.keyDown("Enter");
80 shouldBe('$("menulist").selectedIndex', '8'); 80 shouldBe('$("menulist").selectedIndex', '8');
81 81
82 finishJSTest(); 82 finishJSTest();
83 } 83 }
84 </script> 84 </script>
85 </body> 85 </body>
86 </html> 86 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698