2 <img id=
"a" width=
"25" height=
"25" src=
"resources/green-red-blue-yellow-animated.gif?a">
3 <img id=
"b" width=
"25" height=
"25" src=
"resources/green-red-blue-yellow-animated.gif?b">
4 <img id=
"c" width=
"25" height=
"25" src=
"resources/green-red-blue-yellow-animated.gif?c">
5 <img id=
"d" width=
"25" height=
"25" src=
"resources/green-red-blue-yellow-animated.gif?d">
6 <img id=
"e" width=
"25" height=
"25" src=
"resources/green-red-blue-yellow-animated.gif?e">
9 testRunner
.waitUntilDone();
11 window
.onload = function() {
12 // Jump to the 2nd frame.
13 window
.internals
.advanceImageAnimation(b
);
15 // Jump to the 3rd frame.
16 for (var i
= 0; i
< 2; i
++)
17 window
.internals
.advanceImageAnimation(c
);
19 // Jump to the 4th frame.
20 for (var i
= 0; i
< 3; i
++)
21 window
.internals
.advanceImageAnimation(d
);
23 // Ensure the animation can loop and get back to the first frame.
24 for (var i
= 0; i
< 4; i
++)
25 window
.internals
.advanceImageAnimation(e
);
27 requestAnimationFrame(function() {
28 if (window
.testRunner
)
29 testRunner
.notifyDone();