mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Update web-platform-tests to revision 58eb04cecbbec2e18531ab440225e38944a9c444
This commit is contained in:
parent
25e8bf69e6
commit
665817d2a6
35333 changed files with 1818077 additions and 16036 deletions
|
@ -90,11 +90,6 @@ function createPseudo(test, type) {
|
|||
return anim.effect.target;
|
||||
}
|
||||
|
||||
// Convert px unit value to a Number
|
||||
function pxToNum(str) {
|
||||
return Number(String(str).match(/^(-?[\d.]+)px$/)[1]);
|
||||
}
|
||||
|
||||
// Cubic bezier with control points (0, 0), (x1, y1), (x2, y2), and (1, 1).
|
||||
function cubicBezier(x1, y1, x2, y2) {
|
||||
function xForT(t) {
|
||||
|
@ -146,6 +141,13 @@ function stepStart(nsteps) {
|
|||
}
|
||||
}
|
||||
|
||||
function framesTiming(nframes) {
|
||||
return function framesClosure(x) {
|
||||
var result = Math.floor(x * nframes) / (nframes - 1);
|
||||
return (result > 1.0 && x <= 1.0) ? 1.0 : result;
|
||||
}
|
||||
}
|
||||
|
||||
function waitForAnimationFrames(frameCount) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
function handleFrame() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue