5 internals
.settings
.setImageAnimationPolicy("none");
8 testRunner
.waitUntilDone();
10 function changeImage() {
11 document
.getElementById("target").src
= "animation-green.gif";
15 function finishTest() {
16 if (window
.testRunner
)
17 testRunner
.notifyDone();
20 function imageLoaded() {
24 var img
= document
.getElementById("target");
26 internals
.advanceTimeForImage(img
, 0.1);
28 if (window
.testRunner
) {
29 testRunner
.layoutAndPaintAsyncThen(function () {
30 window
.requestAnimationFrame(finishTest
);
35 <body onload=
"changeImage()">
36 <img id=
"target" src=
"animation-blue.gif" onload=
"imageLoaded()">