Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / animation-events-create.html
blobf65a16d0d39c06a1f27de08758b8c3e543b40ec5
1 <html>
2 <head>
3 <script src="../resources/js-test.js"></script>
4 </head>
5 <body>
6 <p id="description"></p>
7 <div id="console"></div>
8 <script>
10 description("Test dynamic creation of AnimationEvent.");
12 if (document.createEvent)
13 testPassed("document.createEvent exists");
14 else
15 testFailed("document.createEvent missing");
17 debug("");
18 debug("Test creation of AnimationEvent");
20 var ev = document.createEvent("AnimationEvent");
22 shouldBe("typeof(ev)", "'object'");
23 shouldBe("ev.animationName", "''");
24 shouldBe("ev.elapsedTime", "0.0");
26 debug("");
27 debug("Create a MouseEvent and make sure it doesn't have AnimationEvent properties");
29 ev = document.createEvent("MouseEvent");
31 shouldBe("typeof(ev)", "'object'");
32 shouldBe("ev.animationName", "undefined");
33 shouldBe("ev.elapsedTime", "undefined");
35 debug("");
37 </script>
38 </body>
39 </html>