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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-drawImage-incomplete.js

Issue 2674863003: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments 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/script-tests/canvas-drawImage-incomplete.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-drawImage-incomplete.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-drawImage-incomplete.js
deleted file mode 100644
index c5094a2b67f1a7b3e4904660a90de13a7b177d34..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-drawImage-incomplete.js
+++ /dev/null
@@ -1,30 +0,0 @@
-description("Test that drawImage() does nothing with an incomplete image or video");
-
-if (window.testRunner)
- testRunner.dumpAsText();
-
-var canvas = document.createElement("canvas");
-var ctx = canvas.getContext('2d');
-ctx.fillStyle = 'red';
-ctx.fillRect(0,0,150,150);
-
-var img = new Image();
-img.src = '../../http/tests/misc/resources/image-slow.pl';
-
-var video = document.createElement("video");
-
-shouldBe("ctx.drawImage(img, 0, 0)", "undefined");
-
-var imgdata = ctx.getImageData(0, 0, 1, 1).data;
-shouldBe("imgdata[0]", "255");
-shouldBe("imgdata[1]", "0");
-shouldBe("imgdata[2]", "0");
-shouldBe("imgdata[3]", "255");
-
-shouldBe("ctx.drawImage(video, 0, 0)", "undefined");
-
-imgdata = ctx.getImageData(0, 0, 1, 1).data;
-shouldBe("imgdata[0]", "255");
-shouldBe("imgdata[1]", "0");
-shouldBe("imgdata[2]", "0");
-shouldBe("imgdata[3]", "255");

Powered by Google App Engine
This is Rietveld 408576698