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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-file-vs-blob.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, 4 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
OLDNEW
1 <script src = "../../../../resources/js-test.js"></script> 1 <script src = "../../resources/js-test.js"></script>
2 <script type = "text/javascript"> 2 <script type = "text/javascript">
3 if (window.testRunner) 3 if (window.testRunner)
4 { 4 {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 } 7 }
8 8
9 description("Test if toBlob creates a Blob-type object."); 9 description("Test if toBlob creates a Blob-type object.");
10 10
11 var resultImageObject = null; 11 var resultImageObject = null;
12 canvas = document.createElement('canvas'); 12 canvas = document.createElement('canvas');
13 canvas.toBlob(function(b) { 13 canvas.toBlob(function(b) {
14 resultImageObject = b; 14 resultImageObject = b;
15 shouldBeFalse('resultImageObject instanceof File'); 15 shouldBeFalse('resultImageObject instanceof File');
16 shouldBeTrue('resultImageObject instanceof Blob'); 16 shouldBeTrue('resultImageObject instanceof Blob');
17 if (window.testRunner) 17 if (window.testRunner)
18 testRunner.notifyDone(); 18 testRunner.notifyDone();
19 }); 19 });
20 </Script> 20 </Script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698