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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.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-fill.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.js b/LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.js
index db257023ba73a8899164c48acaf9049930008fe5..ecaf5e6c8bd011056131638013a43619c9211eaa 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-path-context-fill.js
@@ -53,7 +53,7 @@ function testFillWith(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++) {
@@ -70,6 +70,8 @@ function prepareTestScenario() {
shouldThrow("ctx.fill(null, 'evenodd')");
shouldThrow("ctx.fill([], 'evenodd')");
shouldThrow("ctx.fill({}, 'evenodd')");
+ shouldThrow("ctx.fill('gazonk')");
+ shouldThrow("ctx.fill(path, 'gazonk')");
}
// Run test and allow variation of results.

Powered by Google App Engine
This is Rietveld 408576698