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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-path-context-clip.js

Issue 179493002: Add null check to fill, stroke, clip method (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: expected.txt Created 6 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: LayoutTests/fast/canvas/script-tests/canvas-path-context-clip.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-path-context-clip.js b/LayoutTests/fast/canvas/script-tests/canvas-path-context-clip.js
index 78e02570e47cb00b8b629cd0de566debb65cf1ea..cff4d5ceae805a6981a40136b8b2dd1e6bc77913 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-path-context-clip.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-path-context-clip.js
@@ -66,6 +66,12 @@ function prepareTestScenario() {
// Test exception cases.
shouldThrow("ctx.clip(null)");
shouldThrow("ctx.clip(null, null)");
+ shouldThrow("ctx.clip(null, 'nonzero')");
+ shouldThrow("ctx.clip([], 'nonzero')");
+ shouldThrow("ctx.clip({}, 'nonzero')");
+ shouldThrow("ctx.clip(null, 'evenodd')");
+ shouldThrow("ctx.clip([], 'evenodd')");
+ shouldThrow("ctx.clip({}, 'evenodd')");
}
// Run test and allow variation of results.

Powered by Google App Engine
This is Rietveld 408576698