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

Side by Side Diff: LayoutTests/fast/canvas/script-tests/linearGradient-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 createLinearGradient with infinite values' 2 'This test checks createLinearGradient 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.createLinearGradient(0, 0, 100, NaN)", "'Error: NotSupportedErr or: DOM Exception 9'"); 7 shouldThrow("ctx.createLinearGradient(0, 0, 100, NaN)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
8 shouldThrow("ctx.createLinearGradient(0, 0, 100, Infinity)", "'Error: NotSupport edError: DOM Exception 9'"); 8 shouldThrow("ctx.createLinearGradient(0, 0, 100, Infinity)", "'NotSupportedError : The implementation did not support the requested type of object or operation.' ");
9 shouldThrow("ctx.createLinearGradient(0, 0, 100, -Infinity)", "'Error: NotSuppor tedError: DOM Exception 9'"); 9 shouldThrow("ctx.createLinearGradient(0, 0, 100, -Infinity)", "'NotSupportedErro r: The implementation did not support the requested type of object or operation. '");
10 shouldThrow("ctx.createLinearGradient(0, 0, NaN, 100)", "'Error: NotSupportedErr or: DOM Exception 9'"); 10 shouldThrow("ctx.createLinearGradient(0, 0, NaN, 100)", "'NotSupportedError: The implementation did not support the requested type of object or operation.'");
11 shouldThrow("ctx.createLinearGradient(0, 0, Infinity, 100)", "'Error: NotSupport edError: DOM Exception 9'"); 11 shouldThrow("ctx.createLinearGradient(0, 0, Infinity, 100)", "'NotSupportedError : The implementation did not support the requested type of object or operation.' ");
12 shouldThrow("ctx.createLinearGradient(0, 0, -Infinity, 100)", "'Error: NotSuppor tedError: DOM Exception 9'"); 12 shouldThrow("ctx.createLinearGradient(0, 0, -Infinity, 100)", "'NotSupportedErro r: The implementation did not support the requested type of object or operation. '");
13 shouldThrow("ctx.createLinearGradient(0, NaN, 100, 100)", "'Error: NotSupportedE rror: DOM Exception 9'"); 13 shouldThrow("ctx.createLinearGradient(0, NaN, 100, 100)", "'NotSupportedError: T he implementation did not support the requested type of object or operation.'");
14 shouldThrow("ctx.createLinearGradient(0, Infinity, 100, 100)", "'Error: NotSuppo rtedError: DOM Exception 9'"); 14 shouldThrow("ctx.createLinearGradient(0, Infinity, 100, 100)", "'NotSupportedErr or: The implementation did not support the requested type of object or operation .'");
15 shouldThrow("ctx.createLinearGradient(0, -Infinity, 100, 100)", "'Error: NotSupp ortedError: DOM Exception 9'"); 15 shouldThrow("ctx.createLinearGradient(0, -Infinity, 100, 100)", "'NotSupportedEr ror: The implementation did not support the requested type of object or operatio n.'");
16 shouldThrow("ctx.createLinearGradient(NaN, 0, 100, 100)", "'Error: NotSupportedE rror: DOM Exception 9'"); 16 shouldThrow("ctx.createLinearGradient(NaN, 0, 100, 100)", "'NotSupportedError: T he implementation did not support the requested type of object or operation.'");
17 shouldThrow("ctx.createLinearGradient(Infinity, 0, 100, 100)", "'Error: NotSuppo rtedError: DOM Exception 9'"); 17 shouldThrow("ctx.createLinearGradient(Infinity, 0, 100, 100)", "'NotSupportedErr or: The implementation did not support the requested type of object or operation .'");
18 shouldThrow("ctx.createLinearGradient(-Infinity, 0, 100, 100)", "'Error: NotSupp ortedError: DOM Exception 9'"); 18 shouldThrow("ctx.createLinearGradient(-Infinity, 0, 100, 100)", "'NotSupportedEr ror: The implementation did not support the requested type of object or operatio n.'");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698