Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: LayoutTests/fast/canvas/toDataURL-supportedTypes.html

Issue 1302423004: Support lossy and lossless <canvas>.toDataURL for webp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/canvas/toDataURL-supportedTypes.html
diff --git a/LayoutTests/fast/canvas/toDataURL-supportedTypes.html b/LayoutTests/fast/canvas/toDataURL-supportedTypes.html
index 02475d8e8c74eb362bdd6c2b29fc1cec7c183a35..1ab2578b3ebd214fbd196d2a91e7af077759949d 100644
--- a/LayoutTests/fast/canvas/toDataURL-supportedTypes.html
+++ b/LayoutTests/fast/canvas/toDataURL-supportedTypes.html
@@ -25,22 +25,24 @@
var supportedMIMETypes = [
"image/png",
"image/jpeg",
- "image/gif",
+ "image/webp",
+ "image/webp.ll",
];
function testToDataURL()
{
- // Test supported MIME types
+ // Test supported image formats.
for (var i in supportedMIMETypes) {
testMIMEType(supportedMIMETypes[i]);
}
- // Test no MIME type
+ // Test invalid format type arguments.
testMIMEType();
testMIMEType(null);
testMIMEType(undefined);
- // Test other formats that we don't support
+ // Test other formats that we don't support.
+ testMIMEType("image/gif");
testMIMEType("image/x-webkitbitmap");
}

Powered by Google App Engine
This is Rietveld 408576698