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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-path-context-clip.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-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 94aa3201dda2b17682edc902958ab74e7d36e1ee..2da69d93fa15ef92088fef9082a4b4af5f0c9533 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-path-context-clip.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-path-context-clip.js
@@ -55,7 +55,7 @@ function testClipWith(fillRule, path) {
// Execute test.
function prepareTestScenario() {
fillRules = [undefined, 'nonzero', 'evenodd'];
- var path = new Path2D();
+ path = new Path2D();
drawRectanglesOn(path);
for (var i = 0; i < fillRules.length; i++) {
@@ -72,6 +72,8 @@ function prepareTestScenario() {
shouldThrow("ctx.clip(null, 'evenodd')");
shouldThrow("ctx.clip([], 'evenodd')");
shouldThrow("ctx.clip({}, 'evenodd')");
+ shouldThrow("ctx.clip('gazonk')");
+ shouldThrow("ctx.clip(path, 'gazonk')");
}
// Run test and allow variation of results.

Powered by Google App Engine
This is Rietveld 408576698