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

Unified Diff: LayoutTests/web-animations-api/timed-item.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/timed-item.html
diff --git a/LayoutTests/web-animations-api/timed-item.html b/LayoutTests/web-animations-api/timed-item.html
index 3e4164393bf464f1cabf6382f7ba1720add81252..4945a8f0fc4337f78e8548727a175f060cbeab4e 100644
--- a/LayoutTests/web-animations-api/timed-item.html
+++ b/LayoutTests/web-animations-api/timed-item.html
@@ -11,7 +11,7 @@ var element = document.getElementById('e');
var keyframes = [{opacity: '1', offset: 0}, {opacity: '0', offset: 1}];
test(function() {
- var animation = new Animation(element, keyframes);
+ var animation = new KeyframeEffect(element, keyframes);
alancutter (OOO until 2018) 2015/05/05 01:04:51 s/animation/keyframeEffect/g
dstockwell 2015/05/05 03:33:24 Done..
assert_equals(animation.computedTiming.localTime, null);
assert_equals(animation.computedTiming.currentIteration, null);
}, 'TimedItem.localTime and TimedItem.currentIteration are null when animation is not associated with a Player');
@@ -43,7 +43,7 @@ test(function() {
}, 'TimedItem.currentIteration is null when animation is not in effect');
test(function() {
- var animation = new Animation(element, keyframes, 2);
+ var animation = new KeyframeEffect(element, keyframes, 2);
assert_equals(animation.computedTiming.startTime, 0);
assert_equals(animation.computedTiming.endTime, 2);
assert_equals(animation.computedTiming.duration, 2);
@@ -51,7 +51,7 @@ test(function() {
}, 'TimedItem startTime, endTime, duration, activeDuration are sensible for a simple animation');
test(function() {
- var animation = new Animation(element, keyframes, {duration: 3, iterations: 4, delay: 5});
+ var animation = new KeyframeEffect(element, keyframes, {duration: 3, iterations: 4, delay: 5});
assert_equals(animation.computedTiming.startTime, 0);
assert_equals(animation.computedTiming.endTime, 17);
assert_equals(animation.computedTiming.duration, 3);
@@ -59,12 +59,12 @@ test(function() {
}, 'TimedItem startTime, endTime, duration, activeDuration are sensible for animations with delays and iterations');
test(function() {
- var animation = new Animation(element, keyframes, {delay: 1});
+ var animation = new KeyframeEffect(element, keyframes, {delay: 1});
assert_equals(animation.computedTiming.duration, 0);
}, 'TimedItem duration is calculated when no duration is specified');
test(function() {
- var timing = new Animation(element, keyframes).timing;
+ var timing = new KeyframeEffect(element, keyframes).timing;
for (var attr of ['delay', 'endDelay', 'iterationStart', 'playbackRate']) {
assert_throws(new TypeError, function() { timing[attr] = NaN; }, attr);
assert_throws(new TypeError, function() { timing[attr] = Infinity; }, attr);

Powered by Google App Engine
This is Rietveld 408576698