Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / transitions / transition-end-event-create.html
blobf6d5c55d91149be03e292506256ebab4f3eb42bd
1 <html>
2 <head>
3 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css">
4 <script src="../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <script>
11 description("Test dynamic creation of WebKitTransitionEnd event.");
13 if (document.createEvent)
14 testPassed("document.createEvent exists");
15 else
16 testFailed("document.createEvent missing");
18 debug("");
19 debug("Test creation of WebKitTransitionEvent");
21 var ev = document.createEvent("WebKitTransitionEvent");
23 shouldBe("typeof(ev)", "'object'");
24 shouldBe("ev.propertyName", "''");
25 shouldBe("ev.elapsedTime", "0.0");
27 debug("");
28 debug("Create a MouseEvent and make sure it doesn't have the WebKitTransitionEnd event properties");
30 ev = document.createEvent("MouseEvent");
32 shouldBe("typeof(ev)", "'object'");
33 shouldBe("ev.propertyName", "undefined");
34 shouldBe("ev.elapsedTime", "undefined");
36 debug("");
37 successfullyParsed = true;
39 </script>
40 <script src="../fast/js/resources/js-test-post.js"></script>
41 </body>
42 </html>