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

Unified Diff: LayoutTests/fast/canvas/canvas-isPointInStroke-with-path-expected.txt

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-isPointInStroke-with-path-expected.txt
diff --git a/LayoutTests/fast/canvas/canvas-isPointInStroke-with-path-expected.txt b/LayoutTests/fast/canvas/canvas-isPointInStroke-with-path-expected.txt
index eda53b5bd8ddac564a727878949921a78c6cbd31..dec4240308980b1cc543f08d4d3dd425653320ae 100644
--- a/LayoutTests/fast/canvas/canvas-isPointInStroke-with-path-expected.txt
+++ b/LayoutTests/fast/canvas/canvas-isPointInStroke-with-path-expected.txt
@@ -23,8 +23,9 @@ PASS ctx.isPointInStroke(path,18,70) is false
PASS ctx.isPointInStroke(path,NaN,122) is false
PASS ctx.isPointInStroke(path,18,NaN) is false
-Check null and invalid type
+Check invalid type
PASS ctx.isPointInStroke(null,70,20) threw exception TypeError: Failed to execute 'isPointInStroke' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Path2D'..
+PASS ctx.isPointInStroke(undefined,70,20) threw exception TypeError: Failed to execute 'isPointInStroke' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Path2D'..
PASS ctx.isPointInStroke([],20,70) threw exception TypeError: Failed to execute 'isPointInStroke' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Path2D'..
PASS ctx.isPointInStroke({},120,70) threw exception TypeError: Failed to execute 'isPointInStroke' on 'CanvasRenderingContext2D': parameter 1 is not of type 'Path2D'..

Powered by Google App Engine
This is Rietveld 408576698