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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/AnimationEffectTiming/easing.html

Issue 2212873003: W3C auto test importer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: 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;

Powered by Google App Engine
This is Rietveld 408576698