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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-scroll-path-into-view.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-scroll-path-into-view.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-scroll-path-into-view.js b/LayoutTests/fast/canvas/script-tests/canvas-scroll-path-into-view.js
index 8cf2a4e802e798ab5928ea9f9424638136f5aca8..6a6e44b2b44699339767da109ade006f007e148a 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-scroll-path-into-view.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-scroll-path-into-view.js
@@ -153,6 +153,7 @@ debug("");
debug("Test case 5: exceptions");
shouldThrow("context.scrollPathIntoView(null);");
+shouldThrow("context.scrollPathIntoView(undefined);");
shouldThrow("context.scrollPathIntoView([]);");
shouldThrow("context.scrollPathIntoView({});");
debug("");

Powered by Google App Engine
This is Rietveld 408576698