3 <script src=
"../resources/js-test.js"></script>
6 <p id=
"description"></p>
7 <div id=
"console"></div>
10 description("Test dynamic creation of WebKitTransitionEnd event.");
12 if (document
.createEvent
)
13 testPassed("document.createEvent exists");
15 testFailed("document.createEvent missing");
18 debug("Test creation of WebKitTransitionEvent");
20 var ev
= document
.createEvent("WebKitTransitionEvent");
22 shouldBe("typeof(ev)", "'object'");
23 shouldBe("ev.propertyName", "''");
24 shouldBe("ev.elapsedTime", "0.0");
27 debug("Create a MouseEvent and make sure it doesn't have the WebKitTransitionEnd event properties");
29 ev
= document
.createEvent("MouseEvent");
31 shouldBe("typeof(ev)", "'object'");
32 shouldBe("ev.propertyName", "undefined");
33 shouldBe("ev.elapsedTime", "undefined");