var EXPECT_RESULT = 2;
function RunTest() {
try {
- var AnimationEvent = new WebKitAnimationEvent("AnimationEvent", {animationName : "A", elapsedTime : 0.3, pseudoElement : "C"});
- if (typeof AnimationEvent == "object" && AnimationEvent instanceof WebKitAnimationEvent) {
- assert_equals(AnimationEvent.animationName, "A", "The element animationName value Test");
- assert_equals(AnimationEvent.elapsedTime, 0.3, "The element elapsedTime value Test");
+ var AE = new AnimationEvent("AnimationEvent", {animationName : "A", elapsedTime : 0.3, pseudoElement : "C"});
+ if (typeof AE == "object" && AE instanceof AnimationEvent) {
+ assert_equals(AE.animationName, "A", "The element animationName value Test");
+ assert_equals(AE.elapsedTime, 0.3, "The element elapsedTime value Test");
t.done();
} else {
assert_unreached("not create a AnimationEvent object");
}
} catch (ex) {
- assert_unreached("{Error Name: " + ex.name + ": " + typeof AnimationEvent +"}");
+ assert_unreached("{Error Name: " + ex.name + ": " + typeof AE +"}");
}
}
RunTest();