1 <!-- Based on fast/repaint/canvas-resize.html -->
12 Tests paint invalidation of canvas when it's resized. Passes if there is a whole green circle.
13 <canvas id=
"canvas" width=
"500" height=
"500"></canvas>
15 <script src=
"resources/paint-invalidation-test.js"></script>
17 window
.expectedPaintInvalidationObjects
= [
18 "LayoutHTMLCanvas (positioned) CANVAS id='canvas'",
20 function paintInvalidationTest() {
21 document
.getElementById('canvas').style
.width
= '500px';
23 onload
= runPaintInvalidationTest
;
25 var ctx
= document
.getElementById('canvas').getContext('2d');
27 ctx
.arc(250, 250, 250, 0, 2 * Math
.PI
);
28 ctx
.fillStyle
= 'green';