Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / resize-while-save-active.html
blobbcd1e9bdd44d84f6f452908dd5d5825d80563dc6
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 </head>
5 <body>
6 <canvas id="mycanvas" width="512" height="512"></canvas>
7 <script>
8 if (window.testRunner)
9 testRunner.dumpAsText()
10 onload = function()
12 var canvas = document.getElementById('mycanvas');
13 var ctx = canvas.getContext('2d');
14 ctx.fillStyle = "rgb(255,165,0)";
15 ctx.fillRect(0, 0, 512, 512);
16 ctx.save();
17 canvas.width = 256;
18 ctx.fillStyle = "rgb(255,165,0)";
19 ctx.fillRect(0, 0, 256, 512);
20 document.body.appendChild(document.createElement("p")).appendChild(document.createTextNode("If we got this far without an assertion, this test passed."));
22 </script>
23 </body>
24 </html>