mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Update web-platform-tests to revision 8fde342d6e62e9820f2c19db634b99b78df796fa
This commit is contained in:
parent
db29cb01b0
commit
e9a369631b
48 changed files with 1012 additions and 283 deletions
|
@ -1218,7 +1218,7 @@ const gCSSProperties = {
|
|||
// https://svgwg.org/svg2-draft/painting.html#StrokeDasharrayProperty
|
||||
types: [
|
||||
'dasharray',
|
||||
{ type: 'discrete', options: [ [ 'none', '10, 20' ] ] }
|
||||
{ type: 'discrete', options: [ [ 'none', '10px, 20px' ] ] }
|
||||
]
|
||||
},
|
||||
'stroke-dashoffset': {
|
||||
|
|
|
@ -473,14 +473,14 @@ const lengthPercentageOrCalcType = {
|
|||
};
|
||||
|
||||
const positiveNumberType = {
|
||||
testInterpolation: (property, setup) => {
|
||||
testInterpolation: (property, setup, expectedUnit='') => {
|
||||
test(t => {
|
||||
const idlName = propertyToIDL(property);
|
||||
const target = createTestElement(t, setup);
|
||||
const animation = target.animate({ [idlName]: [1.1, 1.5] },
|
||||
{ duration: 1000, fill: 'both' });
|
||||
testAnimationSamples(animation, idlName,
|
||||
[{ time: 500, expected: '1.3' }]);
|
||||
[{ time: 500, expected: '1.3' + expectedUnit }]);
|
||||
}, `${property} supports animating as a positive number`);
|
||||
},
|
||||
|
||||
|
@ -2622,7 +2622,7 @@ const rectType = {
|
|||
const dasharrayType = {
|
||||
testInterpolation: (property, setup) => {
|
||||
percentageType.testInterpolation(property, setup);
|
||||
positiveNumberType.testInterpolation(property, setup);
|
||||
positiveNumberType.testInterpolation(property, setup, 'px');
|
||||
|
||||
test(t => {
|
||||
const idlName = propertyToIDL(property);
|
||||
|
@ -2633,7 +2633,7 @@ const dasharrayType = {
|
|||
{ duration: 1000, fill: 'both' });
|
||||
testAnimationSamples(
|
||||
animation, idlName,
|
||||
[{ time: 500, expected: '6, 12, 8, 12, 10, 6, 10, 16, 4, 8, 14, 10' }]);
|
||||
[{ time: 500, expected: '6px, 12px, 8px, 12px, 10px, 6px, 10px, 16px, 4px, 8px, 14px, 10px' }]);
|
||||
}, `${property} supports animating as a dasharray (mismatched length)`);
|
||||
|
||||
test(t => {
|
||||
|
@ -2645,8 +2645,8 @@ const dasharrayType = {
|
|||
{ duration: 1000, fill: 'both' });
|
||||
testAnimationSamples(
|
||||
animation, idlName,
|
||||
[{ time: 500, expected: '4, 40%, 4, 6' }]);
|
||||
}, `${property} supports animating as a dasharray (mixed number and percentage)`);
|
||||
[{ time: 500, expected: '4px, 40%, 4px, 6px' }]);
|
||||
}, `${property} supports animating as a dasharray (mixed lengths and percentages)`);
|
||||
|
||||
},
|
||||
|
||||
|
@ -2665,7 +2665,7 @@ const dasharrayType = {
|
|||
{ duration: 1000, composite });
|
||||
testAnimationSamples(
|
||||
animation, idlName,
|
||||
[{ time: 0, expected: '1, 2, 3, 4, 5' }]);
|
||||
[{ time: 0, expected: '1px, 2px, 3px, 4px, 5px' }]);
|
||||
}, `${property}: dasharray`);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue