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

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: Use new API in layout tests Created 5 years, 8 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..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>

Powered by Google App Engine
This is Rietveld 408576698