OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <script> | 6 <script> |
7 description("Ensure correct behavior of drawImage with ImageBitmaps constructed
from ImageBitmaps that are constructed from images (not pinned to memory) and ca
nvases (pinned to memory)."); | 7 description("Ensure correct behavior of drawImage with ImageBitmaps constructed
from ImageBitmaps that are constructed from images (not pinned to memory) and ca
nvases (pinned to memory)."); |
8 | 8 |
9 window.jsTestIsAsync = true; | 9 window.jsTestIsAsync = true; |
10 | 10 |
11 function shouldBeFilled(x, y, w, h) { | 11 function shouldBeFilled(x, y, w, h) { |
12 shouldBeGreen(x+2, y+2); | 12 shouldBeGreen(x+2, y+2); |
13 shouldBeGreen(x+w-2, y+h-2); | 13 shouldBeGreen(x+w-2, y+h-2); |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 clearContext(ctx); | 129 clearContext(ctx); |
130 ctx.drawImage(imageBitmap, x1, y1, w1, h1, 0, 0, 50, 50); | 130 ctx.drawImage(imageBitmap, x1, y1, w1, h1, 0, 0, 50, 50); |
131 shouldBeFilled(0, 0, 50, 50); | 131 shouldBeFilled(0, 0, 50, 50); |
132 } | 132 } |
133 } | 133 } |
134 | 134 |
135 </script> | 135 </script> |
136 </body> | 136 </body> |
137 </html> | 137 </html> |
OLD | NEW |