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

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

Issue 291563004: Overload resolution: ignore extra arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaseline Created 6 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 | Annotate | Revision Log
OLDNEW
1 description("Test the behavior of CanvasRenderingContext2D.setShadow() when call ed with different numbers of arguments."); 1 description("Test the behavior of CanvasRenderingContext2D.setShadow() when call ed 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 shouldThrow("ctx.setShadow()"); 5 shouldThrow("ctx.setShadow()");
6 shouldThrow("ctx.setShadow(0)"); 6 shouldThrow("ctx.setShadow(0)");
7 shouldThrow("ctx.setShadow(0, 0)"); 7 shouldThrow("ctx.setShadow(0, 0)");
8 shouldBe("ctx.setShadow(0, 0, 0)", "undefined"); 8 shouldBe("ctx.setShadow(0, 0, 0)", "undefined");
9 shouldBe("ctx.setShadow(0, 0, 0, 0)", "undefined"); 9 shouldBe("ctx.setShadow(0, 0, 0, 0)", "undefined");
10 shouldBe("ctx.setShadow(0, 0, 0, 0, 0)", "undefined"); 10 shouldBe("ctx.setShadow(0, 0, 0, 0, 0)", "undefined");
11 shouldThrow("ctx.setShadow(0, 0, 0, 0, 0, 0)"); 11 shouldThrow("ctx.setShadow(0, 0, 0, 0, 0, 0)");
12 shouldBe("ctx.setShadow(0, 0, 0, 0, 'red')", "undefined"); 12 shouldBe("ctx.setShadow(0, 0, 0, 0, 'red')", "undefined");
13 shouldThrow("ctx.setShadow(0, 0, 0, 0, 'red', 0)"); 13 shouldThrow("ctx.setShadow(0, 0, 0, 0, 'red', 0)");
14 shouldBe("ctx.setShadow(0, 0, 0, 0, 'red', 0, 0)", "undefined"); 14 shouldBe("ctx.setShadow(0, 0, 0, 0, 'red', 0, 0)", "undefined");
15 shouldThrow("ctx.setShadow(0, 0, 0, 0, 0, 0)"); 15 shouldThrow("ctx.setShadow(0, 0, 0, 0, 0, 0)");
16 shouldBe("ctx.setShadow(0, 0, 0, 0, 0, 0, 0)", "undefined"); 16 shouldBe("ctx.setShadow(0, 0, 0, 0, 0, 0, 0)", "undefined");
17 shouldBe("ctx.setShadow(0, 0, 0, 0, 0, 0, 0, 0)", "undefined"); 17 shouldBe("ctx.setShadow(0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
18 shouldThrow("ctx.setShadow(0, 0, 0, 0, 0, 0, 0, 0, 0)"); 18 shouldBe("ctx.setShadow(0, 0, 0, 0, 0, 0, 0, 0, 0)", "undefined");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698