4 This test verifies that canvas animations update properly with anuimation loops that use setTimeout. Eight vertical green bars should appear below this text.
5 <canvas id=
"c" width=
"400" height=
"200"></canvas>
6 <script type=
"text/javascript">
7 var canvas
= document
.getElementById('c');
8 var ctx
= canvas
.getContext('2d');
9 ctx
.fillStyle
= 'green';
12 if (window
.testRunner
) {
13 testRunner
.waitUntilDone();
17 ctx
.fillRect(xpos
, 0, 40, 200);
20 window
.setTimeout(draw
, 16);
22 if (window
.testRunner
) {
23 testRunner
.notifyDone();