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

Unified Diff: LayoutTests/web-animations-api/timed-item-specified-getters.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/timed-item-specified-getters.html
diff --git a/LayoutTests/web-animations-api/timed-item-specified-getters.html b/LayoutTests/web-animations-api/timed-item-specified-getters.html
index ed57b7b4da3776804f1564ceb1dae8ccbafb28dc..40952e03b6657a343afa54b164827f7bb2aca464 100644
--- a/LayoutTests/web-animations-api/timed-item-specified-getters.html
+++ b/LayoutTests/web-animations-api/timed-item-specified-getters.html
@@ -10,15 +10,15 @@
var element = document.getElementById('e');
var keyframes = [{opacity: '1', offset: 0}, {opacity: '0', offset: 1}];
-var animationBasic = new Animation(element, keyframes);
-var specifiedTimingBasic = animationBasic.timing;
+var keyframeEffectBasic = new KeyframeEffect(element, keyframes);
+var specifiedTimingBasic = keyframeEffectBasic.timing;
var timingNumberDuration = {duration: 2};
-var animationNumberDuration = new Animation(element, keyframes, timingNumberDuration);
+var animationNumberDuration = new KeyframeEffect(element, keyframes, timingNumberDuration);
var specifiedTimingNumberDuration = animationNumberDuration.timing;
var timingNoDuration = {iterations: 3};
-var animationNoDuration = new Animation(element, keyframes, timingNoDuration);
+var animationNoDuration = new KeyframeEffect(element, keyframes, timingNoDuration);
var specifiedTimingNoDuration = animationNoDuration.timing;
var timingAllFields = {
@@ -32,11 +32,11 @@ var timingAllFields = {
direction: 'reverse',
easing: 'step-start'
};
-var animationAllFields = new Animation(element, keyframes, timingAllFields);
+var animationAllFields = new KeyframeEffect(element, keyframes, timingAllFields);
var specifiedTimingAllFields = animationAllFields.timing;
test(function() {
- assert_equals(specifiedTimingBasic.constructor, Timing);
+ assert_equals(specifiedTimingBasic.constructor, AnimationEffectTiming);
assert_equals(specifiedTimingBasic.delay, 0);
assert_equals(specifiedTimingBasic.endDelay, 0);
assert_equals(specifiedTimingBasic.fill, 'auto');

Powered by Google App Engine
This is Rietveld 408576698