5 window
.onload = function() {
7 testRunner
.waitUntilDone();
8 context
= document
.getElementById('c').getContext('2d');
11 context
.rect(0,0,75,75);
13 context
.fillStyle
= 'red';
14 context
.fillRect(0,0,30,30);
15 context
.fillRect(50,50,30,30);
17 context
.scale(0.5,0.5);
19 context
.rect(0,0,5,5);
21 requestAnimationFrame(drawSecondFrame
);
24 function drawSecondFrame() {
26 context
.fillStyle
= 'green';
27 context
.fillRect(0,0,30,30);
28 context
.fillRect(50,50,30,30);
29 if (window
.testRunner
)
30 testRunner
.notifyDone();
33 <p>Two green squares of different sizes should appear below
</p>
34 <canvas id=
"c" width=
"300" height=
"300"></canvas>