[WinCairo] Turn on WebGL.
[WebKit-https.git] / LayoutTests / indieui / create-uirequestevent.html
1 <html>
2 <head>
3 <script src="../resources/js-test-pre.js"></script>
4 </head>
5 <body>
6 <script>
7 description('Tests that document.createEvent() works with IndieUI events.');
8
9 var eventTypes = new Array("UIRequestEvent");
10
11 for (var k = 0; k < eventTypes.length; k++) {
12     var event = document.createEvent("UIRequestEvent");
13
14     debug(event);
15     shouldBeTrue("typeof event == 'object'");
16
17     shouldBeTrue("'type' in event");
18     shouldBeTrue("'bubbles' in event");
19     shouldBeTrue("'cancelable' in event");
20     shouldBeTrue("'receiver' in event");
21
22     shouldBe("typeof event.type", "'string'");
23     shouldBe("typeof event.bubbles", "'boolean'");
24     shouldBe("typeof event.cancelable", "'boolean'");
25     shouldBe("typeof event.receiver", "'object'");
26
27     debug("\n");
28 }
29
30
31
32 </script>
33 <script src="../resources/js-test-post.js"></script>
34 </body>
35 </html>