4 <script src=
"../../resources/js-test.js"></script>
7 description('Checks that timers maintain their scheduled order while the page is invisible.');
9 var jsTestIsAsync
= true;
10 var expectedIndices
= [];
13 function processTimer(index
)
16 if (indices
.length
== expectedIndices
.length
) {
18 shouldBeTrue('areArraysEqual(expectedIndices, indices)');
25 if (window
.testRunner
)
26 testRunner
.setPageVisibility('hidden');
28 for (var i
= 0; i
< 100; i
++) {
29 expectedIndices
.push(i
);
30 setTimeout(function(i
) {
39 <body onload=
"runTest()">