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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-path-context-stroke.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-path-context-stroke.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-path-context-stroke.js b/LayoutTests/fast/canvas/script-tests/canvas-path-context-stroke.js
index 199725ba63429a9c720764b7199de9e595c9d15c..4905abc48a478239b655d5bbe53486d28fcd3981 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-path-context-stroke.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-path-context-stroke.js
@@ -47,6 +47,7 @@ function prepareTestScenario() {
// Test exception cases.
shouldThrow("ctx.stroke(null)");
+ shouldThrow("ctx.stroke(undefined)");
shouldThrow("ctx.stroke([])");
shouldThrow("ctx.stroke({})");
}

Powered by Google App Engine
This is Rietveld 408576698