OLD | NEW |
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.'"); |
OLD | NEW |