AX: <svg> elements with labels and no accessible contents are exposed as empty AXGroups
[WebKit-https.git] / LayoutTests / gamepad / gamepad-event.html
1 <!DOCTYPE html>
2 <body>
3 <script src="../resources/js-test.js"></script>
4 <script>
5     description("Tests the GamepadEvent constructor");
6
7     shouldThrowErrorName("new GamepadEvent()", "TypeError");
8     shouldNotThrow("event = new GamepadEvent('test')");
9     shouldBeEqualToString("event.type", "test");
10     shouldBeNull("event.gamepad");
11     shouldBeFalse("event.bubbles");
12     shouldBeFalse("event.cancelable");
13     shouldBeFalse("event.composed");
14
15     shouldNotThrow("event = new GamepadEvent('test', {'bubbles': true, 'cancelable': true, 'composed': true })");
16     shouldBeNull("event.gamepad");
17     shouldBeTrue("event.bubbles");
18     shouldBeTrue("event.cancelable");
19     shouldBeTrue("event.composed");
20
21     shouldBeDefined("navigator.getGamepads");
22 </script>
23 </body>