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

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

Issue 2695963004: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Fixing canvas-text-ideographic-space.html to pass on Mac trybots Created 3 years, 10 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/testharness.js"></script>
2 <script type = "text/javascript"> 2 <script src="../../resources/testharnessreport.js"></script>
3 if (window.testRunner)
4 {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
7 }
8 3
9 description("Test if toBlob creates a Blob-type object."); 4 <script>
5 async_test(t => {
10 6
11 var resultImageObject = null; 7 var resultImageObject = null;
12 canvas = document.createElement('canvas'); 8 canvas = document.createElement('canvas');
13 canvas.toBlob(function(b) { 9 canvas.toBlob(function(b) {
14 resultImageObject = b; 10 resultImageObject = b;
15 shouldBeFalse('resultImageObject instanceof File'); 11 assert_false(resultImageObject instanceof File);
16 shouldBeTrue('resultImageObject instanceof Blob'); 12 assert_true(resultImageObject instanceof Blob);
17 if (window.testRunner) 13 t.done();
18 testRunner.notifyDone(); 14 });
19 }); 15
20 </Script> 16 }, "Test if toBlob creates a Blob-type object.");
17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698