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

Side by Side Diff: LayoutTests/fast/canvas/script-tests/radialGradient-infinite-values.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 createRadialGradient with infinite values' 2 'This test checks createRadialGradient with infinite values'
3 ); 3 );
4 4
5 var ctx = document.createElement('canvas').getContext('2d'); 5 var ctx = document.createElement('canvas').getContext('2d');
6 6
7 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, 0, NaN)", "'Error: NotSuppor tedError: DOM Exception 9'"); 7 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, 0, NaN)", "'NotSupportedErro r: The implementation did not support the requested type of object or operation. '");
8 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, 0, Infinity)", "'Error: NotS upportedError: DOM Exception 9'"); 8 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, 0, Infinity)", "'NotSupporte dError: The implementation did not support the requested type of object or opera tion.'");
9 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, 0, -Infinity)", "'Error: Not SupportedError: DOM Exception 9'"); 9 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, 0, -Infinity)", "'NotSupport edError: The implementation did not support the requested type of object or oper ation.'");
10 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, NaN, 100)", "'Error: NotSupp ortedError: DOM Exception 9'"); 10 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, NaN, 100)", "'NotSupportedEr ror: The implementation did not support the requested type of object or operatio n.'");
11 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, Infinity, 100)", "'Error: No tSupportedError: DOM Exception 9'"); 11 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, Infinity, 100)", "'NotSuppor tedError: The implementation did not support the requested type of object or ope ration.'");
12 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, -Infinity, 100)", "'Error: N otSupportedError: DOM Exception 9'"); 12 shouldThrow("ctx.createRadialGradient(0, 0, 100, 0, -Infinity, 100)", "'NotSuppo rtedError: The implementation did not support the requested type of object or op eration.'");
13 shouldThrow("ctx.createRadialGradient(0, 0, 100, NaN, 0, 100)", "'Error: NotSupp ortedError: DOM Exception 9'"); 13 shouldThrow("ctx.createRadialGradient(0, 0, 100, NaN, 0, 100)", "'NotSupportedEr ror: The implementation did not support the requested type of object or operatio n.'");
14 shouldThrow("ctx.createRadialGradient(0, 0, 100, Infinity, 0, 100)", "'Error: No tSupportedError: DOM Exception 9'"); 14 shouldThrow("ctx.createRadialGradient(0, 0, 100, Infinity, 0, 100)", "'NotSuppor tedError: The implementation did not support the requested type of object or ope ration.'");
15 shouldThrow("ctx.createRadialGradient(0, 0, 100, -Infinity, 0, 100)", "'Error: N otSupportedError: DOM Exception 9'"); 15 shouldThrow("ctx.createRadialGradient(0, 0, 100, -Infinity, 0, 100)", "'NotSuppo rtedError: The implementation did not support the requested type of object or op eration.'");
16 shouldThrow("ctx.createRadialGradient(0, 0, NaN, 0, 0, 100)", "'Error: NotSuppor tedError: DOM Exception 9'"); 16 shouldThrow("ctx.createRadialGradient(0, 0, NaN, 0, 0, 100)", "'NotSupportedErro r: The implementation did not support the requested type of object or operation. '");
17 shouldThrow("ctx.createRadialGradient(0, 0, Infinity, 0, 0, 100)", "'Error: NotS upportedError: DOM Exception 9'"); 17 shouldThrow("ctx.createRadialGradient(0, 0, Infinity, 0, 0, 100)", "'NotSupporte dError: The implementation did not support the requested type of object or opera tion.'");
18 shouldThrow("ctx.createRadialGradient(0, 0, -Infinity, 0, 0, 100)", "'Error: Not SupportedError: DOM Exception 9'"); 18 shouldThrow("ctx.createRadialGradient(0, 0, -Infinity, 0, 0, 100)", "'NotSupport edError: The implementation did not support the requested type of object or oper ation.'");
19 shouldThrow("ctx.createRadialGradient(0, NaN, 100, 0, 0, 100)", "'Error: NotSupp ortedError: DOM Exception 9'"); 19 shouldThrow("ctx.createRadialGradient(0, NaN, 100, 0, 0, 100)", "'NotSupportedEr ror: The implementation did not support the requested type of object or operatio n.'");
20 shouldThrow("ctx.createRadialGradient(0, Infinity, 100, 0, 0, 100)", "'Error: No tSupportedError: DOM Exception 9'"); 20 shouldThrow("ctx.createRadialGradient(0, Infinity, 100, 0, 0, 100)", "'NotSuppor tedError: The implementation did not support the requested type of object or ope ration.'");
21 shouldThrow("ctx.createRadialGradient(0, -Infinity, 100, 0, 0, 100)", "'Error: N otSupportedError: DOM Exception 9'"); 21 shouldThrow("ctx.createRadialGradient(0, -Infinity, 100, 0, 0, 100)", "'NotSuppo rtedError: The implementation did not support the requested type of object or op eration.'");
22 shouldThrow("ctx.createRadialGradient(NaN, 0, 100, 0, 0, 100)", "'Error: NotSupp ortedError: DOM Exception 9'"); 22 shouldThrow("ctx.createRadialGradient(NaN, 0, 100, 0, 0, 100)", "'NotSupportedEr ror: The implementation did not support the requested type of object or operatio n.'");
23 shouldThrow("ctx.createRadialGradient(Infinity, 0, 100, 0, 0, 100)", "'Error: No tSupportedError: DOM Exception 9'"); 23 shouldThrow("ctx.createRadialGradient(Infinity, 0, 100, 0, 0, 100)", "'NotSuppor tedError: The implementation did not support the requested type of object or ope ration.'");
24 shouldThrow("ctx.createRadialGradient(-Infinity, 0, 100, 0, 0, 100)", "'Error: N otSupportedError: DOM Exception 9'"); 24 shouldThrow("ctx.createRadialGradient(-Infinity, 0, 100, 0, 0, 100)", "'NotSuppo rtedError: The implementation did not support the requested type of object or op eration.'");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698