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

Unified 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 side-by-side diff with in-line comments
Download patch
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
index 66e448d7a16e44fa1050f6a0823c002d048ca5e1..cb0d98421cfcaf8e262952063a30d0150656f70e 100644
--- 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
@@ -1,20 +1,17 @@
-<script src = "../../resources/js-test.js"></script>
-<script type = "text/javascript">
-if (window.testRunner)
-{
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
-description("Test if toBlob creates a Blob-type object.");
+<script>
+async_test(t => {
-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>
+ var resultImageObject = null;
+ canvas = document.createElement('canvas');
+ canvas.toBlob(function(b) {
+ resultImageObject = b;
+ assert_false(resultImageObject instanceof File);
+ assert_true(resultImageObject instanceof Blob);
+ t.done();
+ });
+
+}, "Test if toBlob creates a Blob-type object.");
+</script>

Powered by Google App Engine
This is Rietveld 408576698