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

Side by Side Diff: LayoutTests/fast/events/keyboardevent-location-constants.html

Issue 20986003: Define DOM_KEY_LOCATION_* constants on KeyboardEvent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <link rel="help" href="http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardE vent" />
5 <script src="../js/resources/js-test-pre.js"></script>
6 </head>
7 <body>
8 <script>
9 description("Tests that the DOM_KEY_LOCATION_* constants are defined on Keyboard Event");
10
11 shouldBe('KeyboardEvent.DOM_KEY_LOCATION_STANDARD', '0x00');
12 shouldBe('KeyboardEvent.DOM_KEY_LOCATION_LEFT', '0x01');
13 shouldBe('KeyboardEvent.DOM_KEY_LOCATION_RIGHT', '0x02');
14 shouldBe('KeyboardEvent.DOM_KEY_LOCATION_NUMPAD', '0x03');
15 // These constants are not yet supported (crbug.com/265446)
16 shouldBeUndefined('KeyboardEvent.DOM_KEY_LOCATION_MOBILE');
17 shouldBeUndefined('KeyboardEvent.DOM_KEY_LOCATION_JOYSTICK');
18 </script>
19 <script src="../js/resources/js-test-post.js"></script>
20 </body>
21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698