| <script src="../resources/js-test-pre.js"></script> |
| description("Test dynamic creation of WebKitAnimationEvent."); |
| if (document.createEvent) |
| testPassed("document.createEvent exists"); |
| testFailed("document.createEvent missing"); |
| debug("Test creation of WebKitAnimationEvent"); |
| var ev = new WebKitAnimationEvent(""); |
| shouldBe("typeof(ev)", "'object'"); |
| shouldBe("ev.animationName", "''"); |
| shouldBe("ev.elapsedTime", "0.0"); |
| debug("Create a MouseEvent and make sure it doesn't have the WebKitAnimationEnd event properties"); |
| ev = document.createEvent("MouseEvent"); |
| shouldBe("typeof(ev)", "'object'"); |
| shouldBe("ev.animationName", "undefined"); |
| shouldBe("ev.elapsedTime", "undefined"); |
| <script src="../resources/js-test-post.js"></script> |