gecko-dev/testing/web-platform/tests/web-animations/resources/timing-tests.js
Brian Birtles 08d941704d Bug 1445877 [wpt PR 10047] - [web-animations] Update timing interfaces, a=testonly
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
2018-04-15 08:32:44 +01:00

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
];