[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / fast / canvas / drawImage.html
1 If this renders correctly you should see one big friendly green square.
2 <canvas id="canvas" width="200" height="200" ></canvas>
3 <canvas id="canvas2" width="200" height="200" style="display:none" ></canvas>
4 <script>
5 if (window.layoutTestController)
6   layoutTestController.dumpAsText(true);
7
8 var canvas = document.getElementById("canvas");
9 var canvas2 = document.getElementById("canvas2");
10 var context = canvas.getContext("2d");
11 var context2 = canvas2.getContext("2d");
12 context2.fillStyle = 'red';
13 context2.fillRect(0,0,200,200);
14 context2.fillStyle = 'green';
15 context2.fillRect(50,50,100,100);
16 context.drawImage(canvas2, 50, 50, 100, 100, 0, 0, 200, 200);
17 </script>