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

Side by Side Diff: LayoutTests/fast/canvas/script-tests/canvas-overloads-setFillColor.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.setFillColor() when c alled with different numbers of arguments."); 1 description("Test the behavior of CanvasRenderingContext2D.setFillColor() when c alled 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.setFillColor()"); 5 shouldThrow("ctx.setFillColor()");
6 shouldBe("ctx.setFillColor('red')", "undefined"); 6 shouldBe("ctx.setFillColor('red')", "undefined");
7 shouldBe("ctx.setFillColor(0)", "undefined"); 7 shouldBe("ctx.setFillColor(0)", "undefined");
8 shouldBe("ctx.setFillColor(0, 0)", "undefined"); 8 shouldBe("ctx.setFillColor(0, 0)", "undefined");
9 shouldThrow("ctx.setFillColor(0, 0, 0)"); 9 shouldThrow("ctx.setFillColor(0, 0, 0)");
10 shouldBe("ctx.setFillColor(0, 0, 0, 0)", "undefined"); 10 shouldBe("ctx.setFillColor(0, 0, 0, 0)", "undefined");
11 shouldBe("ctx.setFillColor(0, 0, 0, 0, 0)", "undefined"); 11 shouldBe("ctx.setFillColor(0, 0, 0, 0, 0)", "undefined");
12 shouldThrow("ctx.setFillColor(0, 0, 0, 0, 0, 0)"); 12 shouldBe("ctx.setFillColor(0, 0, 0, 0, 0, 0)", "undefined");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698