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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script src = "../../resources/js-test.js"></script>
2 <script type = "text/javascript">
3 if (window.testRunner)
4 {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
7 }
8
9 description("Test if toBlob creates a Blob-type object.");
10
11 var resultImageObject = null;
12 canvas = document.createElement('canvas');
13 canvas.toBlob(function(b) {
14 resultImageObject = b;
15 shouldBeFalse('resultImageObject instanceof File');
16 shouldBeTrue('resultImageObject instanceof Blob');
17 if (window.testRunner)
18 testRunner.notifyDone();
19 });
20 </Script>
OLDNEW
« 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