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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-file-vs-blob.html

Issue 1609313002: Use BlobCallback in toBlob instead of FileCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase master and Renamed mimeType to contentType to match other bits in Blob.h Created 4 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-file-vs-blob-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-file-vs-blob.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-file-vs-blob.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-file-vs-blob.html
new file mode 100644
index 0000000000000000000000000000000000000000..66e448d7a16e44fa1050f6a0823c002d048ca5e1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-file-vs-blob.html
@@ -0,0 +1,20 @@
+<script src = "../../resources/js-test.js"></script>
+<script type = "text/javascript">
+if (window.testRunner)
+{
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+description("Test if toBlob creates a Blob-type object.");
+
+var resultImageObject = null;
+canvas = document.createElement('canvas');
+canvas.toBlob(function(b) {
+ resultImageObject = b;
+ shouldBeFalse('resultImageObject instanceof File');
+ shouldBeTrue('resultImageObject instanceof Blob');
+ if (window.testRunner)
+ testRunner.notifyDone();
+});
+</Script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-file-vs-blob-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698