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

Side by Side Diff: LayoutTests/fast/canvas/script-tests/gradient-addColorStop-with-invalid-color.js

Issue 16818023: DOMException toString is not correct (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 6 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( 1 description(
2 'This test checks invalid colors on gradients.' 2 'This test checks invalid colors on gradients.'
3 ); 3 );
4 4
5 var gradient = document.createElement('canvas').getContext('2d').createLinearGra dient(0, 0, 150, 0); 5 var gradient = document.createElement('canvas').getContext('2d').createLinearGra dient(0, 0, 150, 0);
6 6
7 shouldThrow("gradient.addColorStop(0, '')", "'Error: SyntaxError: DOM Exception 12'"); 7 shouldThrow("gradient.addColorStop(0, '')", "'SyntaxError: An invalid or illegal string was specified.'");
8 shouldThrow("gradient.addColorStop(0, '#cc')", "'Error: SyntaxError: DOM Excepti on 12'"); 8 shouldThrow("gradient.addColorStop(0, '#cc')", "'SyntaxError: An invalid or ille gal string was specified.'");
9 shouldThrow("gradient.addColorStop(0, 'rgb(257, 0)')", "'Error: SyntaxError: DOM Exception 12'"); 9 shouldThrow("gradient.addColorStop(0, 'rgb(257, 0)')", "'SyntaxError: An invalid or illegal string was specified.'");
10 shouldThrow("gradient.addColorStop(0, 'rgb(257, 0, 5, 0)')", "'Error: SyntaxErro r: DOM Exception 12'"); 10 shouldThrow("gradient.addColorStop(0, 'rgb(257, 0, 5, 0)')", "'SyntaxError: An i nvalid or illegal string was specified.'");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698