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

Side by Side Diff: LayoutTests/fast/canvas/script-tests/canvas-overloads-strokeRect.js

Issue 14654002: Make optional arguments in CanvasRenderingContext2D match the spec [1]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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 unified diff | Download patch
OLDNEW
1 description("Test the behavior of CanvasRenderingContext2D.strokeRect() when cal led with different numbers of arguments."); 1 description("Test the behavior of CanvasRenderingContext2D.strokeRect() when cal led with different numbers of arguments.");
2 2
3 var ctx = document.createElement('canvas').getContext('2d'); 3 var ctx = document.createElement('canvas').getContext('2d');
4 4
5 var SyntaxError = "SyntaxError: Syntax error"; 5 var SyntaxError = "SyntaxError: Syntax error";
6 var TypeError = "TypeError: Type error"; 6 var TypeError = "TypeError: Type error";
7 7
8 shouldBe("ctx.strokeRect()", "undefined");
9 shouldBe("ctx.strokeRect(0)", "undefined");
10 shouldBe("ctx.strokeRect(0, 0)", "undefined");
11 shouldBe("ctx.strokeRect(0, 0, 0)", "undefined");
12 shouldBe("ctx.strokeRect(0, 0, 0, 0)", "undefined"); 8 shouldBe("ctx.strokeRect(0, 0, 0, 0)", "undefined");
13 shouldBe("ctx.strokeRect(0, 0, 0, 0, 0)", "undefined"); 9 shouldBe("ctx.strokeRect(0, 0, 0, 0, 0)", "undefined");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698