Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444

This commit is contained in:
Josh Matthews 2017-04-17 12:06:02 +10:00 committed by Anthony Ramine
parent 25e8bf69e6
commit 665817d2a6
35333 changed files with 1818077 additions and 16036 deletions

View file

@ -38,6 +38,11 @@ var gEasingTests = [
easingFunction: stepEnd(2),
serialization: 'steps(2)'
},
{
desc: 'frames function',
easing: 'frames(5)',
easingFunction: framesTiming(5)
},
{
desc: 'linear function',
easing: 'linear', // cubic-bezier(0, 0, 1.0, 1.0)
@ -75,13 +80,44 @@ var gEasingTests = [
}
];
var gInvalidEasings = [
const gInvalidEasings = [
'',
'7',
'test',
'initial',
'inherit',
'unset',
'cubic-bezier(1.1, 0, 1, 1)',
'cubic-bezier(0, 0, 1.1, 1)',
'cubic-bezier(-0.1, 0, 1, 1)',
'cubic-bezier(0, 0, -0.1, 1)',
'cubic-bezier(0.1, 0, 4, 0.4)',
'steps(-1, start)',
'steps(0.1, start)'
'steps(0.1, start)',
'steps(3, nowhere)',
'steps(-3, end)',
'function (a){return a}',
'function (x){return x}',
'function(x, y){return 0.3}',
'frames(1)',
'frames',
'frames()',
'frames(,)',
'frames(a)',
'frames(2.0)',
'frames(2.5)',
'frames(2 3)',
];
// Easings that should serialize to the same string
const gRoundtripEasings = [
'ease',
'linear',
'ease-in',
'ease-out',
'ease-in-out',
'cubic-bezier(0.1, 5, 0.23, 0)',
'steps(3, start)',
'steps(3)',
'frames(3)',
];