3 <link rel=
"stylesheet" href=
"../fast/js/resources/js-test-style.css">
4 <script src=
"../fast/js/resources/js-test-pre.js"></script>
7 <p id=
"description"></p>
8 <div id=
"console"></div>
11 description("Test dynamic creation of WebKitTransitionEnd event.");
13 if (document
.createEvent
)
14 testPassed("document.createEvent exists");
16 testFailed("document.createEvent missing");
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");
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");
37 successfullyParsed
= true;
40 <script src=
"../fast/js/resources/js-test-post.js"></script>