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

Unified Diff: third_party/WebKit/LayoutTests/virtual/threaded/fast/canvas-toBlob/canvas-toBlob-case-insensitive-mimetype.html

Issue 2189733003: Remove virtual test suits virtual/threaded/fast/canvas-toBlob (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: third_party/WebKit/LayoutTests/virtual/threaded/fast/canvas-toBlob/canvas-toBlob-case-insensitive-mimetype.html
diff --git a/third_party/WebKit/LayoutTests/virtual/threaded/fast/canvas-toBlob/canvas-toBlob-case-insensitive-mimetype.html b/third_party/WebKit/LayoutTests/virtual/threaded/fast/canvas-toBlob/canvas-toBlob-case-insensitive-mimetype.html
deleted file mode 100644
index 5e772afc9586481204ff53d49710513b97b060d4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/virtual/threaded/fast/canvas-toBlob/canvas-toBlob-case-insensitive-mimetype.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<script src = "../../../../resources/js-test.js"></script>
-<script type = "text/javascript">
-if (window.testRunner)
-{
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-description("Test that toBlob(mimeType) ignores the case of 'mimeType'.");
-
-canvas = document.createElement('canvas');
-var counter;
-
-function tryMimeType(mimeType, expectedMimeType)
-{
- canvas.toBlob(function(blob) {
- if (blob.type === expectedMimeType) {
- testPassed("");
- }
- else {
- testFailed(blob.type + " does not match " + expectedMimeType);
- }
- counter = counter - 1;
- if (window.testRunner) {
- if (counter == 0) {
- testRunner.notifyDone();
- }
- }
- }, mimeType);
-}
-
-counter = 4;
-
-//Note that due to the async nature of toBlob, these callbacks may complete
-// at random order but they will all print PASS when they pass.
-tryMimeType("image/PNG", "image/png");
-
-tryMimeType("imaGE/jpEg", "image/jpeg");
-
-tryMimeType("ImAgE/WeBp", "image/webp");
-
-//Unsupported mime type falls back to png
-tryMimeType("image/bmp", "image/png");
-
-</Script>

Powered by Google App Engine
This is Rietveld 408576698