summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/web-animations/resources/timing-tests.js
blob: 4b0f021f74e09f6cbde5e27fc7cb8240b7bd9788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
'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
];