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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-toDataURL-case-insensitive-mimetype.js

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/script-tests/canvas-toDataURL-case-insensitive-mimetype.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-toDataURL-case-insensitive-mimetype.js b/LayoutTests/fast/canvas/script-tests/canvas-toDataURL-case-insensitive-mimetype.js
index 3de13e3db6f1bec81bbedf1dcdc1c9313067b650..1630b6d520335a2742bc2c41bf67304728cae370 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-toDataURL-case-insensitive-mimetype.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-toDataURL-case-insensitive-mimetype.js
@@ -20,3 +20,13 @@ if (tryMimeType("image/jpeg") == "image/jpeg") {
shouldBe("tryMimeType('imAgE/jPEg')", "'image/jpeg'");
shouldBe("tryMimeType('IMAGE/JPEG')", "'image/jpeg'");
}
+
+if (tryMimeType("image/webp") == "image/webp") {
+ shouldBe("tryMimeType('image/webp')", "'image/webp'");
+ shouldBe("tryMimeType('imAgE/wEBp')", "'image/webp'");
+ shouldBe("tryMimeType('IMAGE/WEBP')", "'image/webp'");
+
+ shouldBe("tryMimeType('image/webp.ll')", "'image/webp'");
+ shouldBe("tryMimeType('imAgE/wEBp.Ll')", "'image/webp'");
+ shouldBe("tryMimeType('IMAGE/WEBP.LL')", "'image/webp'");
+}

Powered by Google App Engine
This is Rietveld 408576698