3 <p>This is a regression test for crbug.com/
382588. The test verifies that calling getImageData does not turn off smooth filtering of
2d canvases. Below this text, there should be a black square with tapered edges.
</p>
4 <canvas id=
"mycanvas" width=
"100" height=
"100" style=
"width:400px; height:400px"></canvas>
5 <script type=
"application/x-javascript">
6 var canvas = document.getElementById(
"mycanvas");
7 var ctx = canvas.getContext(
"2d");
9 testRunner.waitUntilDone();
10 window.requestAnimationFrame(function() {
11 ctx.fillRect(
25,
25,
50,
50);
12 window.requestAnimationFrame(function() {
13 ctx.getImageData(
0,
0,
1,
1);
14 if (window.testRunner)
15 testRunner.notifyDone();