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

Unified Diff: LayoutTests/fast/canvas/script-tests/canvas-path-addpath.js

Issue 232913004: Use StrictTypeChecking for methods on CRC2D that accepts Path2D (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update some more 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-addpath.js
diff --git a/LayoutTests/fast/canvas/script-tests/canvas-path-addpath.js b/LayoutTests/fast/canvas/script-tests/canvas-path-addpath.js
index ed7b69f8b3fcc9f1543577805ab41f5c366ff5cb..fa583c2b746325791ba9a2378820c4ac2321de5a 100644
--- a/LayoutTests/fast/canvas/script-tests/canvas-path-addpath.js
+++ b/LayoutTests/fast/canvas/script-tests/canvas-path-addpath.js
@@ -74,8 +74,8 @@ p7.rect(0,0,100,100);
var p8 = new Path2D();
p8.rect(100,100,100,100);
p7.addPath(p8, null);
-p7.addPath(p8, []);
-p7.addPath(p8, {});
+shouldThrow("p7.addPath(p8, [])");
+shouldThrow("p7.addPath(p8, {})");
ctx.fillStyle = 'red';
ctx.currentPath = p7;
ctx.fill();

Powered by Google App Engine
This is Rietveld 408576698