OLD | NEW |
1 <script src = "../../../../resources/js-test.js"></script> | 1 <script src = "../../resources/js-test.js"></script> |
2 <script type = 'text/javascript'> | 2 <script type = 'text/javascript'> |
3 jsTestIsAsync = true; | 3 jsTestIsAsync = true; |
4 description("Test that verifies whether the image data survives the toBlob proce
ss after async image encoding"); | 4 description("Test that verifies whether the image data survives the toBlob proce
ss after async image encoding"); |
5 | 5 |
6 if (window.testRunner) { | 6 if (window.testRunner) { |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
9 } | 9 } |
10 | 10 |
11 var canvas = document.createElement("canvas"); | 11 var canvas = document.createElement("canvas"); |
(...skipping 26 matching lines...) Expand all Loading... |
38 | 38 |
39 finishJSTest(); | 39 finishJSTest(); |
40 } | 40 } |
41 | 41 |
42 canvas.toBlob(function(blob) { | 42 canvas.toBlob(function(blob) { |
43 url = URL.createObjectURL(blob); | 43 url = URL.createObjectURL(blob); |
44 newImg.src = url; | 44 newImg.src = url; |
45 }); | 45 }); |
46 | 46 |
47 </script> | 47 </script> |
OLD | NEW |