mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 13:48:23 +02:00
Automatic update from web-platform-tests[web-animations] Update timing interfaces (#10047)
This updates the tests to reflect the specification changes made in 953041faa3
wpt-commits: b73f249d95a82118603f749c266d540e0b4b3b04
wpt-pr: 10047
wpt-commits: b73f249d95a82118603f749c266d540e0b4b3b04
wpt-pr: 10047
46 lines
907 B
JavaScript
46 lines
907 B
JavaScript
'use strict';
|
|
|
|
// =================================
|
|
//
|
|
// Common timing parameter test data
|
|
//
|
|
// =================================
|
|
|
|
|
|
// ------------------------------
|
|
// Delay values
|
|
// ------------------------------
|
|
|
|
const gBadDelayValues = [
|
|
NaN, Infinity, -Infinity
|
|
];
|
|
|
|
// ------------------------------
|
|
// Duration values
|
|
// ------------------------------
|
|
|
|
const gGoodDurationValues = [
|
|
{ specified: 123.45, computed: 123.45 },
|
|
{ specified: 'auto', computed: 0 },
|
|
{ specified: Infinity, computed: Infinity },
|
|
];
|
|
|
|
const gBadDurationValues = [
|
|
-1, NaN, -Infinity, 'abc', '100'
|
|
];
|
|
|
|
// ------------------------------
|
|
// iterationStart values
|
|
// ------------------------------
|
|
|
|
const gBadIterationStartValues = [
|
|
-1, NaN, Infinity, -Infinity
|
|
];
|
|
|
|
// ------------------------------
|
|
// iterations values
|
|
// ------------------------------
|
|
|
|
const gBadIterationsValues = [
|
|
-1, -Infinity, NaN
|
|
];
|