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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-currentTransform.js

Issue 289283002: Add some layout tests about behavior on undefined and null. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 6 years, 7 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: LayoutTests/fast/canvas/script-tests/canvas-currentTransform.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-currentTransform.js b/LayoutTests/fast/canvas/script-tests/canvas-currentTransform.js
index c34ff1f3ec3dc941abf5540cda0c6ccb896f7860..74ba2e1f4625e1e7472150e8fcc35dded74f638a 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-currentTransform.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-currentTransform.js
@@ -175,6 +175,8 @@ shouldBe("imgdata[6]", "255");
debug("Check assigning an invalid object throws exception as expected");
shouldThrow("ctx.currentTransform = ctx", '"TypeError: Failed to set the \'currentTransform\' property on \'CanvasRenderingContext2D\': The provided value is not of type \'SVGMatrix\'."');
+shouldThrow("ctx.currentTransform = undefined", '"TypeError: Failed to set the \'currentTransform\' property on \'CanvasRenderingContext2D\': The provided value is not of type \'SVGMatrix\'."');
+shouldThrow("ctx.currentTransform = null", '"TypeError: Failed to set the \'currentTransform\' property on \'CanvasRenderingContext2D\': The provided value is not of type \'SVGMatrix\'."');
debug("Check handling non-finite values. see 2d.transformation.setTransform.nonfinite.html");
ctx.fillStyle = 'red';

Powered by Google App Engine
This is Rietveld 408576698