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

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

Issue 2694703004: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: 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-overloads-drawImage.js
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.js b/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.js
deleted file mode 100644
index 3c9d525d4ae87a6238e65e1c334bfdf15f86ebcf..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-overloads-drawImage.js
+++ /dev/null
@@ -1,30 +0,0 @@
-description("Test the behavior of CanvasRenderingContext2D.drawImage() when called with different numbers of arguments.");
-
-var ctx = document.createElement('canvas').getContext('2d');
-
-var imageElement = document.createElement("img");
-shouldThrow("ctx.drawImage()");
-shouldThrow("ctx.drawImage(imageElement)");
-shouldThrow("ctx.drawImage(imageElement, 0)");
-shouldBe("ctx.drawImage(imageElement, 0, 0)", "undefined");
-shouldThrow("ctx.drawImage(imageElement, 0, 0, 0)");
-shouldBe("ctx.drawImage(imageElement, 0, 0, 0, 0)", "undefined");
-shouldThrow("ctx.drawImage(imageElement, 0, 0, 0, 0, 0)");
-shouldThrow("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0)");
-shouldThrow("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0)");
-shouldBe("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
-shouldBe("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
-shouldBe("ctx.drawImage(imageElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
-
-var canvasElement = document.createElement("canvas");
-shouldThrow("ctx.drawImage(canvasElement)");
-shouldThrow("ctx.drawImage(canvasElement, 0)");
-shouldBe("ctx.drawImage(canvasElement, 0, 0)", "undefined");
-shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0)");
-shouldBe("ctx.drawImage(canvasElement, 0, 0, 0, 0)", "undefined");
-shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0)");
-shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0)");
-shouldThrow("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0)");
-shouldBe("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
-shouldBe("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
-shouldBe("ctx.drawImage(canvasElement, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");

Powered by Google App Engine
This is Rietveld 408576698