Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: LayoutTests/web-animations-api/animation-constructor.html

Issue 1113173003: Web Animations: Update naming to reflect spec changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No, really. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..6c131ee9f7daa6ce4b85950fbc05f9580775b30b 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);
- assert_not_equals(animation, undefined);
- assert_equals(animation.constructor, Animation);
-}, 'Calling new Animation() with a timing object input should create an animation.');
+ var keyframeEffect = new KeyframeEffect(element, keyframes, timingObject);
+ assert_not_equals(keyframeEffect, undefined);
+ assert_equals(keyframeEffect.constructor, KeyframeEffect);
+}, 'Calling new KeyframeEffect() with a timing object input should create an keyframeEffect.');
test(function() {
- var animation = new Animation(element, keyframes, 2);
- assert_not_equals(animation, undefined);
- assert_equals(animation.constructor, Animation);
-}, 'Calling new Animation() with a duration input should create an animation.');
+ var keyframeEffect = new KeyframeEffect(element, keyframes, 2);
+ assert_not_equals(keyframeEffect, undefined);
+ assert_equals(keyframeEffect.constructor, KeyframeEffect);
+}, 'Calling new KeyframeEffect() with a duration input should create an keyframeEffect.');
test(function() {
- var animation = new Animation(element, keyframes);
- assert_not_equals(animation, undefined);
- assert_equals(animation.constructor, Animation);
-}, 'Calling new Animation() with no timing input should create an animation.');
+ var keyframeEffect = new KeyframeEffect(element, keyframes);
+ assert_not_equals(keyframeEffect, undefined);
+ assert_equals(keyframeEffect.constructor, KeyframeEffect);
+}, 'Calling new KeyframeEffect() with no timing input should create an keyframeEffect.');
test(function() {
- var animation = new Animation(null, keyframes);
- assert_not_equals(animation, undefined);
- assert_equals(animation.constructor, Animation);
-}, 'Calling new Animation() with no target should create an animation.');
+ var keyframeEffect = new KeyframeEffect(null, keyframes);
+ assert_not_equals(keyframeEffect, undefined);
+ assert_equals(keyframeEffect.constructor, KeyframeEffect);
+}, 'Calling new KeyframeEffect() with no target should create an keyframeEffect.');
</script>

Powered by Google App Engine
This is Rietveld 408576698