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

Unified Diff: LayoutTests/fast/canvas/canvas-putImageData.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/canvas-putImageData.js
diff --git a/LayoutTests/fast/canvas/canvas-putImageData.js b/LayoutTests/fast/canvas/canvas-putImageData.js
index 97f351081c53ae8ed7f55de36c120deaca9d7a8b..b273f92b65f4212a381378c2262b382ce117252a 100644
--- a/LayoutTests/fast/canvas/canvas-putImageData.js
+++ b/LayoutTests/fast/canvas/canvas-putImageData.js
@@ -220,6 +220,8 @@ shouldThrow("context.putImageData(buffer, 0, 0, undefined, 0, 0, 0)");
shouldThrow("context.putImageData(buffer, 0, 0, 0, undefined, 0, 0)");
shouldThrow("context.putImageData(buffer, 0, 0, 0, 0, undefined, 0)");
shouldThrow("context.putImageData(buffer, 0, 0, 0, 0, 0, undefined)");
+shouldThrow("context.putImageData(null, 0, 0, 0, 0, 0, 0)");
+shouldThrow("context.putImageData(undefined, 0, 0, 0, 0, 0, 0)");
// Ensure we don't mess up bounds clipping checks
var rectcanvas = document.createElement("canvas");

Powered by Google App Engine
This is Rietveld 408576698