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 window.jsTestIsAsync = true; | 7 window.jsTestIsAsync = true; |
8 | 8 |
9 function shouldBeGreen(x, y) { | 9 function shouldBeGreen(x, y) { |
10 d = ctx.getImageData(x, y, 1, 1).data; | 10 d = ctx.getImageData(x, y, 1, 1).data; |
(...skipping 20 matching lines...) Expand all Loading... |
31 ctx.drawImage(imageBitmap, 0, 0); | 31 ctx.drawImage(imageBitmap, 0, 0); |
32 shouldBeGreen(100, 100); | 32 shouldBeGreen(100, 100); |
33 finishJSTest(); | 33 finishJSTest(); |
34 }, function() { | 34 }, function() { |
35 testFailed("Promise was rejected."); | 35 testFailed("Promise was rejected."); |
36 finishJSTest(); | 36 finishJSTest(); |
37 }); | 37 }); |
38 }, 50); | 38 }, 50); |
39 } | 39 } |
40 </script> | 40 </script> |
41 <script src="../js/resources/js-test-post.js"></script> | |
42 </body> | 41 </body> |
43 </html> | 42 </html> |
OLD | NEW |