| 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 if (window.testRunner) | 3 if (window.testRunner) |
| 4 { | 4 { |
| 5 testRunner.dumpAsText(); | 5 testRunner.dumpAsText(); |
| 6 testRunner.waitUntilDone(); | 6 testRunner.waitUntilDone(); |
| 7 } | 7 } |
| 8 | 8 |
| 9 description("Test that toBlob(mimeType) ignores the case of 'mimeType'."); | 9 description("Test that toBlob(mimeType) ignores the case of 'mimeType'."); |
| 10 | 10 |
| 11 canvas = document.createElement('canvas'); | 11 canvas = document.createElement('canvas'); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 36 tryMimeType("image/PNG", "image/png"); | 36 tryMimeType("image/PNG", "image/png"); |
| 37 | 37 |
| 38 tryMimeType("imaGE/jpEg", "image/jpeg"); | 38 tryMimeType("imaGE/jpEg", "image/jpeg"); |
| 39 | 39 |
| 40 tryMimeType("ImAgE/WeBp", "image/webp"); | 40 tryMimeType("ImAgE/WeBp", "image/webp"); |
| 41 | 41 |
| 42 //Unsupported mime type falls back to png | 42 //Unsupported mime type falls back to png |
| 43 tryMimeType("image/bmp", "image/png"); | 43 tryMimeType("image/bmp", "image/png"); |
| 44 | 44 |
| 45 </Script> | 45 </Script> |
| OLD | NEW |