Index: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/AnimationEffectTiming/easing.html |
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/AnimationEffectTiming/easing.html b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/AnimationEffectTiming/easing.html |
index d7c99dfe2ba10daca089aad68c4508daf33e9408..cedd7e68b1dbc0729929f563555b4f81f5573a58 100644 |
--- a/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/AnimationEffectTiming/easing.html |
+++ b/third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/AnimationEffectTiming/easing.html |
@@ -28,7 +28,8 @@ gEffectEasingTests.forEach(function(options) { |
{ duration: 1000 * MS_PER_SEC, |
fill: 'forwards' }); |
anim.effect.timing.easing = options.easing; |
- assert_equals(anim.effect.timing.easing, options.easing); |
+ assert_equals(anim.effect.timing.easing, |
+ options.serialization || options.easing); |
var easing = options.easingFunction; |
assert_progress(anim, 0, easing); |
@@ -39,18 +40,16 @@ gEffectEasingTests.forEach(function(options) { |
}, options.desc); |
}); |
-test(function(t) { |
- var div = createDiv(t); |
- var anim = div.animate({ opacity: [ 0, 1 ] }, 100 * MS_PER_SEC); |
- assert_throws({ name: 'TypeError' }, |
- function() { |
- anim.effect.timing.easing = ''; |
- }); |
- assert_throws({ name: 'TypeError' }, |
- function() { |
- anim.effect.timing.easing = 'test'; |
- }); |
-}, 'Test invalid easing value'); |
+gInvalidEasingTests.forEach(function(options) { |
+ test(function(t) { |
+ var div = createDiv(t); |
+ var anim = div.animate({ opacity: [ 0, 1 ] }, 100 * MS_PER_SEC); |
+ assert_throws({ name: 'TypeError' }, |
+ function() { |
+ anim.effect.timing.easing = options.easing; |
+ }); |
+ }, 'Invalid effect easing value test: \'' + options.easing + '\''); |
+}); |
test(function(t) { |
var delay = 1000 * MS_PER_SEC; |