--- a/testing/web-platform/tests/web-animations/resources/keyframe-tests.js
+++ b/testing/web-platform/tests/web-animations/resources/keyframe-tests.js
@@ -417,52 +417,46 @@ const gKeyframesTests = [
keyframe(offset(0.5), { left: '300px' }, 'linear'),
keyframe(offset(1), { left: '400px' }, 'ease-out'),
keyframe(offset(1), { left: '500px' }, 'steps(1)')],
},
];
const gInvalidKeyframesTests = [
{
- desc: 'keyframes with an out-of-bounded positive offset',
- input: [ { opacity: 0 },
- { opacity: 0.5, offset: 2 },
- { opacity: 1 } ],
- expected: { name: 'TypeError' },
+ desc: 'keyframes with an out-of-bounded positive offset',
+ input: [ { opacity: 0 },
+ { opacity: 0.5, offset: 2 },
+ { opacity: 1 } ],
},
{
- desc: 'keyframes with an out-of-bounded negative offset',
- input: [ { opacity: 0 },
- { opacity: 0.5, offset: -1 },
- { opacity: 1 } ],
- expected: { name: 'TypeError' },
+ desc: 'keyframes with an out-of-bounded negative offset',
+ input: [ { opacity: 0 },
+ { opacity: 0.5, offset: -1 },
+ { opacity: 1 } ],
},
{
- desc: 'keyframes not loosely sorted by offset',
- input: [ { opacity: 0, offset: 1 },
- { opacity: 1, offset: 0 } ],
- expected: { name: 'TypeError' },
+ desc: 'keyframes not loosely sorted by offset',
+ input: [ { opacity: 0, offset: 1 },
+ { opacity: 1, offset: 0 } ],
},
{
- desc: 'property-indexed keyframes with an invalid easing value',
- input: { opacity: [ 0, 0.5, 1 ],
- easing: 'inherit' },
- expected: { name: 'TypeError' },
+ desc: 'property-indexed keyframes with an invalid easing value',
+ input: { opacity: [ 0, 0.5, 1 ],
+ easing: 'inherit' },
},
{
- desc: 'a keyframe sequence with an invalid easing value',
- input: [ { opacity: 0, easing: 'jumpy' },
- { opacity: 1 } ],
- expected: { name: 'TypeError' },
+ desc: 'a keyframe sequence with an invalid easing value',
+ input: [ { opacity: 0, easing: 'jumpy' },
+ { opacity: 1 } ],
},
{
- desc: 'keyframes with an invalid composite value',
- input: [ { opacity: 0, composite: 'alternate' },
- { opacity: 1 } ],
- expected: { name: 'TypeError' },
+ desc: 'keyframes with an invalid composite value',
+ input: [ { opacity: 0, composite: 'alternate' },
+ { opacity: 1 } ],
},
];
// ------------------------------
// KeyframeEffectOptions
// ------------------------------
const gKeyframeEffectOptionTests = [
@@ -517,57 +511,25 @@ const gKeyframeEffectOptionTests = [
{
desc: 'a forwards fill',
input: { fill: 'forwards' },
expected: { fill: 'forwards' },
}
];
const gInvalidKeyframeEffectOptionTests = [
- { desc: '-Infinity',
- input: -Infinity,
- expected: { name: 'TypeError' } },
- { desc: 'NaN',
- input: NaN,
- expected: { name: 'TypeError' } },
- { desc: 'a negative value',
- input: -1,
- expected: { name: 'TypeError' } },
- { desc: 'a negative Infinity duration',
- input: { duration: -Infinity },
- expected: { name: 'TypeError' } },
- { desc: 'a NaN duration',
- input: { duration: NaN },
- expected: { name: 'TypeError' } },
- { desc: 'a negative duration',
- input: { duration: -1 },
- expected: { name: 'TypeError' } },
- { desc: 'a string duration',
- input: { duration: 'merrychristmas' },
- expected: { name: 'TypeError' } },
- { desc: 'a negative Infinity iterations',
- input: { iterations: -Infinity},
- expected: { name: 'TypeError' } },
- { desc: 'a NaN iterations',
- input: { iterations: NaN },
- expected: { name: 'TypeError' } },
- { desc: 'a negative iterations',
- input: { iterations: -1 },
- expected: { name: 'TypeError' } },
- { desc: 'a blank easing',
- input: { easing: '' },
- expected: { name: 'TypeError' } },
- { desc: 'an unrecognized easing',
- input: { easing: 'unrecognised' },
- expected: { name: 'TypeError' } },
- { desc: 'an \'initial\' easing',
- input: { easing: 'initial' },
- expected: { name: 'TypeError' } },
- { desc: 'an \'inherit\' easing',
- input: { easing: 'inherit' },
- expected: { name: 'TypeError' } },
- { desc: 'a variable easing',
- input: { easing: 'var(--x)' },
- expected: { name: 'TypeError' } },
- { desc: 'a multi-value easing',
- input: { easing: 'ease-in-out, ease-out' },
- expected: { name: 'TypeError' } }
+ { desc: '-Infinity', input: -Infinity },
+ { desc: 'NaN', input: NaN },
+ { desc: 'a negative value', input: -1 },
+ { desc: 'a negative Infinity duration', input: { duration: -Infinity } },
+ { desc: 'a NaN duration', input: { duration: NaN } },
+ { desc: 'a negative duration', input: { duration: -1 } },
+ { desc: 'a string duration', input: { duration: 'merrychristmas' } },
+ { desc: 'a negative Infinity iterations', input: { iterations: -Infinity} },
+ { desc: 'a NaN iterations', input: { iterations: NaN } },
+ { desc: 'a negative iterations', input: { iterations: -1 } },
+ { desc: 'a blank easing', input: { easing: '' } },
+ { desc: 'an unrecognized easing', input: { easing: 'unrecognised' } },
+ { desc: 'an \'initial\' easing', input: { easing: 'initial' } },
+ { desc: 'an \'inherit\' easing', input: { easing: 'inherit' } },
+ { desc: 'a variable easing', input: { easing: 'var(--x)' } },
+ { desc: 'a multi-value easing', input: { easing: 'ease-in-out, ease-out' } },
];