| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../js/resources/js-test-pre.js"></script> | 3 <script src="../js/resources/js-test-pre.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 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 var y3 = y1 * h3 / h1; | 126 var y3 = y1 * h3 / h1; |
| 127 shouldBeFilled(x3, y3, w3, h3); | 127 shouldBeFilled(x3, y3, w3, h3); |
| 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 <script src="../js/resources/js-test-post.js"></script> | |
| 137 </body> | 136 </body> |
| 138 </html> | 137 </html> |
| OLD | NEW |