mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision 10168e9a5d44efbc6e7d416d1d454eb9c9f1396c
This commit is contained in:
parent
c88dc51d03
commit
0e1caebaf4
791 changed files with 23381 additions and 5501 deletions
|
@ -29,8 +29,8 @@ test(t => {
|
|||
|
||||
anim.effect.composite = 'add';
|
||||
const keyframes = anim.effect.getKeyframes();
|
||||
assert_equals(keyframes[0].composite, undefined,
|
||||
'unspecified keyframe composite value should be absent even ' +
|
||||
assert_equals(keyframes[0].composite, null,
|
||||
'unspecified keyframe composite value should be null even ' +
|
||||
'if effect composite is set');
|
||||
}, 'Unspecified keyframe composite value when setting effect composite');
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ test(t => {
|
|||
assert_equals(effect.getKeyframes()[0].composite, composite,
|
||||
`resulting composite for '${composite}'`);
|
||||
}
|
||||
for (const composite of gBadCompositeValueTests) {
|
||||
for (const composite of gBadKeyframeCompositeValueTests) {
|
||||
assert_throws(new TypeError, () => {
|
||||
new KeyframeEffectReadOnly(target, getKeyframe(composite));
|
||||
});
|
||||
|
@ -76,7 +76,7 @@ test(t => {
|
|||
assert_equals(effect.getKeyframes()[0].composite, composite,
|
||||
`resulting composite for '${composite}'`);
|
||||
}
|
||||
for (const composite of gBadCompositeValueTests) {
|
||||
for (const composite of gBadKeyframeCompositeValueTests) {
|
||||
assert_throws(new TypeError, () => {
|
||||
new KeyframeEffectReadOnly(target, getKeyframes(composite));
|
||||
});
|
||||
|
@ -89,17 +89,17 @@ test(t => {
|
|||
const effect = new KeyframeEffectReadOnly(target, {
|
||||
left: ['10px', '20px']
|
||||
}, { composite: composite });
|
||||
assert_equals(effect.getKeyframes()[0].composite, undefined,
|
||||
assert_equals(effect.getKeyframes()[0].composite, null,
|
||||
`resulting composite for '${composite}'`);
|
||||
}
|
||||
for (const composite of gBadCompositeValueTests) {
|
||||
for (const composite of gBadOptionsCompositeValueTests) {
|
||||
assert_throws(new TypeError, () => {
|
||||
new KeyframeEffectReadOnly(target, {
|
||||
left: ['10px', '20px']
|
||||
}, { composite: composite });
|
||||
});
|
||||
}
|
||||
}, 'composite value is absent if the composite operation specified on the ' +
|
||||
}, 'composite value is null if the composite operation specified on the ' +
|
||||
'keyframe effect is being used');
|
||||
|
||||
for (const subtest of gKeyframesTests) {
|
||||
|
|
|
@ -180,9 +180,27 @@ test(() => {
|
|||
{ done: true },
|
||||
]));
|
||||
assert_frame_lists_equal(effect.getKeyframes(), [
|
||||
{ offset: null, computedOffset: 0, easing: 'linear', left: '100px' },
|
||||
{ offset: null, computedOffset: 0.5, easing: 'linear', left: '300px' },
|
||||
{ offset: null, computedOffset: 1, easing: 'linear', left: '200px' },
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 0,
|
||||
easing: 'linear',
|
||||
left: '100px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 0.5,
|
||||
easing: 'linear',
|
||||
left: '300px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 1,
|
||||
easing: 'linear',
|
||||
left: '200px',
|
||||
composite: null,
|
||||
},
|
||||
]);
|
||||
}, 'Keyframes are read from a custom iterator');
|
||||
|
||||
|
@ -197,9 +215,27 @@ test(() => {
|
|||
keyframes.offset = '0.1';
|
||||
const effect = new KeyframeEffect(null, keyframes);
|
||||
assert_frame_lists_equal(effect.getKeyframes(), [
|
||||
{ offset: null, computedOffset: 0, easing: 'linear', left: '100px' },
|
||||
{ offset: null, computedOffset: 0.5, easing: 'linear', left: '300px' },
|
||||
{ offset: null, computedOffset: 1, easing: 'linear', left: '200px' },
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 0,
|
||||
easing: 'linear',
|
||||
left: '100px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 0.5,
|
||||
easing: 'linear',
|
||||
left: '300px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 1,
|
||||
easing: 'linear',
|
||||
left: '200px',
|
||||
composite: null,
|
||||
},
|
||||
]);
|
||||
}, '\'easing\' and \'offset\' are ignored on iterable objects');
|
||||
|
||||
|
@ -211,11 +247,29 @@ test(() => {
|
|||
{ done: true },
|
||||
]));
|
||||
assert_frame_lists_equal(effect.getKeyframes(), [
|
||||
{ offset: null, computedOffset: 0, easing: 'linear', left: '100px',
|
||||
top: '200px' },
|
||||
{ offset: null, computedOffset: 0.5, easing: 'linear', left: '300px' },
|
||||
{ offset: null, computedOffset: 1, easing: 'linear', left: '200px',
|
||||
top: '100px' },
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 0,
|
||||
easing: 'linear',
|
||||
left: '100px',
|
||||
top: '200px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 0.5,
|
||||
easing: 'linear',
|
||||
left: '300px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 1,
|
||||
easing: 'linear',
|
||||
left: '200px',
|
||||
top: '100px',
|
||||
composite: null,
|
||||
},
|
||||
]);
|
||||
}, 'Keyframes are read from a custom iterator with multiple properties'
|
||||
+ ' specified');
|
||||
|
@ -228,9 +282,27 @@ test(() => {
|
|||
{ done: true },
|
||||
]));
|
||||
assert_frame_lists_equal(effect.getKeyframes(), [
|
||||
{ offset: null, computedOffset: 0, easing: 'linear', left: '100px' },
|
||||
{ offset: 0.75, computedOffset: 0.75, easing: 'linear', left: '250px' },
|
||||
{ offset: null, computedOffset: 1, easing: 'linear', left: '200px' },
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 0,
|
||||
easing: 'linear',
|
||||
left: '100px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: 0.75,
|
||||
computedOffset: 0.75,
|
||||
easing: 'linear',
|
||||
left: '250px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 1,
|
||||
easing: 'linear',
|
||||
left: '200px',
|
||||
composite: null,
|
||||
},
|
||||
]);
|
||||
}, 'Keyframes are read from a custom iterator with where an offset is'
|
||||
+ ' specified');
|
||||
|
@ -253,7 +325,7 @@ test(() => {
|
|||
{ done: true },
|
||||
]));
|
||||
assert_frame_lists_equal(effect.getKeyframes(), [
|
||||
{ offset: null, computedOffset: 1, easing: 'linear' }
|
||||
{ offset: null, computedOffset: 1, easing: 'linear', composite: null }
|
||||
]);
|
||||
}, 'A list of values returned from a custom iterator should be ignored');
|
||||
|
||||
|
@ -270,8 +342,20 @@ test(() => {
|
|||
const effect = new KeyframeEffect(null, [keyframe, { height: '200px' }]);
|
||||
|
||||
assert_frame_lists_equal(effect.getKeyframes(), [
|
||||
{ offset: null, computedOffset: 0, easing: 'linear', height: '100px' },
|
||||
{ offset: null, computedOffset: 1, easing: 'linear', height: '200px' },
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 0,
|
||||
easing: 'linear',
|
||||
height: '100px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 1,
|
||||
easing: 'linear',
|
||||
height: '200px',
|
||||
composite: null,
|
||||
},
|
||||
]);
|
||||
}, 'Only enumerable properties on keyframes are read');
|
||||
|
||||
|
@ -289,8 +373,20 @@ test(() => {
|
|||
const effect = new KeyframeEffect(null, [keyframe, { top: '200px' }]);
|
||||
|
||||
assert_frame_lists_equal(effect.getKeyframes(), [
|
||||
{ offset: null, computedOffset: 0, easing: 'linear', top: '100px' },
|
||||
{ offset: null, computedOffset: 1, easing: 'linear', top: '200px' },
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 0,
|
||||
easing: 'linear',
|
||||
top: '100px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 1,
|
||||
easing: 'linear',
|
||||
top: '200px',
|
||||
composite: null,
|
||||
},
|
||||
]);
|
||||
}, 'Only properties defined directly on keyframes are read');
|
||||
|
||||
|
@ -305,8 +401,20 @@ test(() => {
|
|||
const effect = new KeyframeEffect(null, keyframes);
|
||||
|
||||
assert_frame_lists_equal(effect.getKeyframes(), [
|
||||
{ offset: null, computedOffset: 0, easing: 'linear', height: '100px' },
|
||||
{ offset: null, computedOffset: 1, easing: 'linear', height: '200px' },
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 0,
|
||||
easing: 'linear',
|
||||
height: '100px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 1,
|
||||
easing: 'linear',
|
||||
height: '200px',
|
||||
composite: null,
|
||||
},
|
||||
]);
|
||||
}, 'Only enumerable properties on property-indexed keyframes are read');
|
||||
|
||||
|
@ -324,8 +432,20 @@ test(() => {
|
|||
const effect = new KeyframeEffect(null, keyframes);
|
||||
|
||||
assert_frame_lists_equal(effect.getKeyframes(), [
|
||||
{ offset: null, computedOffset: 0, easing: 'linear', top: '100px' },
|
||||
{ offset: null, computedOffset: 1, easing: 'linear', top: '200px' },
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 0,
|
||||
easing: 'linear',
|
||||
top: '100px',
|
||||
composite: null,
|
||||
},
|
||||
{
|
||||
offset: null,
|
||||
computedOffset: 1,
|
||||
easing: 'linear',
|
||||
top: '200px',
|
||||
composite: null,
|
||||
},
|
||||
]);
|
||||
}, 'Only properties defined directly on property-indexed keyframes are read');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue