| OLD | NEW |
| (Empty) |
| 1 <script src = "../../../../resources/js-test.js"></script> | |
| 2 <script type = "text/javascript"> | |
| 3 if (window.testRunner) | |
| 4 { | |
| 5 testRunner.dumpAsText(); | |
| 6 testRunner.waitUntilDone(); | |
| 7 } | |
| 8 | |
| 9 description("Test if toBlob creates a Blob-type object."); | |
| 10 | |
| 11 var resultImageObject = null; | |
| 12 canvas = document.createElement('canvas'); | |
| 13 canvas.toBlob(function(b) { | |
| 14 resultImageObject = b; | |
| 15 shouldBeFalse('resultImageObject instanceof File'); | |
| 16 shouldBeTrue('resultImageObject instanceof Blob'); | |
| 17 if (window.testRunner) | |
| 18 testRunner.notifyDone(); | |
| 19 }); | |
| 20 </Script> | |
| OLD | NEW |