Index: LayoutTests/web-animations-api/animation-constructor.html |
diff --git a/LayoutTests/web-animations-api/animation-constructor.html b/LayoutTests/web-animations-api/animation-constructor.html |
index 6f44b7204ede1477d347f272fc23f56fcc53e706..e7eb6af513eaaa68be4fc86a843a0b6c5c75c6a0 100644 |
--- a/LayoutTests/web-animations-api/animation-constructor.html |
+++ b/LayoutTests/web-animations-api/animation-constructor.html |
@@ -11,26 +11,26 @@ var keyframes = [{opacity: '1'}, {opacity: '0'}]; |
var timingObject = {duration: 2, iterations: 5}; |
test(function() { |
- var animation = new Animation(element, keyframes, timingObject); |
+ var animation = new KeyframeEffect(element, keyframes, timingObject); |
alancutter (OOO until 2018)
2015/05/05 01:04:50
s/animation/keyframeEffect/g
dstockwell
2015/05/05 03:33:24
DON
|
assert_not_equals(animation, undefined); |
- assert_equals(animation.constructor, Animation); |
-}, 'Calling new Animation() with a timing object input should create an animation.'); |
+ assert_equals(animation.constructor, KeyframeEffect); |
+}, 'Calling new KeyframeEffect() with a timing object input should create an animation.'); |
test(function() { |
- var animation = new Animation(element, keyframes, 2); |
+ var animation = new KeyframeEffect(element, keyframes, 2); |
assert_not_equals(animation, undefined); |
- assert_equals(animation.constructor, Animation); |
-}, 'Calling new Animation() with a duration input should create an animation.'); |
+ assert_equals(animation.constructor, KeyframeEffect); |
+}, 'Calling new KeyframeEffect() with a duration input should create an animation.'); |
test(function() { |
- var animation = new Animation(element, keyframes); |
+ var animation = new KeyframeEffect(element, keyframes); |
assert_not_equals(animation, undefined); |
- assert_equals(animation.constructor, Animation); |
-}, 'Calling new Animation() with no timing input should create an animation.'); |
+ assert_equals(animation.constructor, KeyframeEffect); |
+}, 'Calling new KeyframeEffect() with no timing input should create an animation.'); |
test(function() { |
- var animation = new Animation(null, keyframes); |
+ var animation = new KeyframeEffect(null, keyframes); |
assert_not_equals(animation, undefined); |
- assert_equals(animation.constructor, Animation); |
-}, 'Calling new Animation() with no target should create an animation.'); |
+ assert_equals(animation.constructor, KeyframeEffect); |
+}, 'Calling new KeyframeEffect() with no target should create an animation.'); |
</script> |