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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js

Issue 226733004: Simplify CRC2D winding rule handling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update virtual/gpu/ expectations. Created 6 years, 8 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-isPointInPath-winding.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js b/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js
index 78f7d02551bb157f65597897ea923d8d71772304..7ed85ecfe0782537222c13252e003101b5a02539 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-isPointInPath-winding.js
@@ -56,6 +56,11 @@ function prepareTestScenario() {
shouldBeFalse("ctx.isPointInPath(path, 50, 50, 'evenodd')");
debug('');
+ debug('Testing invalid enumeration isPointInPath (w/ and w/o Path object');
+ shouldThrow("ctx.isPointInPath(path, 50, 50, 'gazonk')");
+ shouldThrow("ctx.isPointInPath(50, 50, 'gazonk')");
+ debug('');
+
debug('Testing null isPointInPath with Path object');
path = null;
shouldThrow("ctx.isPointInPath(null, 50, 50)");

Powered by Google App Engine
This is Rietveld 408576698