Chromium Code Reviews| Index: LayoutTests/fast/events/keyboardevent-location-constants.html |
| diff --git a/LayoutTests/fast/events/keyboardevent-location-constants.html b/LayoutTests/fast/events/keyboardevent-location-constants.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a707ff1dd45c3996246624fe522d3e5d8bfd8d25 |
| --- /dev/null |
| +++ b/LayoutTests/fast/events/keyboardevent-location-constants.html |
| @@ -0,0 +1,20 @@ |
| +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
|
Mike West
2013/07/29 12:40:24
<!DOCTYPE html>
|
| +<html> |
| +<head> |
| +<link rel="help" href="http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent" /> |
|
Mike West
2013/07/29 12:40:24
This is clever; I like it.
|
| +<script src="../js/resources/js-test-pre.js"></script> |
| +</head> |
| +<body> |
| +<script> |
| +description("Tests that the DOM_KEY_LOCATION_* constants are defined on KeyboardEvent"); |
| + |
| +shouldBe('KeyboardEvent.DOM_KEY_LOCATION_STANDARD', '0x00'); |
| +shouldBe('KeyboardEvent.DOM_KEY_LOCATION_LEFT', '0x01'); |
| +shouldBe('KeyboardEvent.DOM_KEY_LOCATION_RIGHT', '0x02'); |
| +shouldBe('KeyboardEvent.DOM_KEY_LOCATION_NUMPAD', '0x03'); |
| +shouldBe('KeyboardEvent.DOM_KEY_LOCATION_MOBILE', '0x04'); |
| +shouldBe('KeyboardEvent.DOM_KEY_LOCATION_JOYSTICK', '0x05'); |
| +</script> |
| +<script src="../js/resources/js-test-post.js"></script> |
| +</body> |
| +</html> |