blob: 949e7f36d88a7ad43f43e35f52d3df6964bdc7f4 [file] [log] [blame]
This test checks createLinearGradient with infinite values
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS ctx.createLinearGradient(0, 0, 100, NaN) threw exception Error: NotSupportedError: DOM Exception 9.
PASS ctx.createLinearGradient(0, 0, 100, Infinity) threw exception Error: NotSupportedError: DOM Exception 9.
PASS ctx.createLinearGradient(0, 0, 100, -Infinity) threw exception Error: NotSupportedError: DOM Exception 9.
PASS ctx.createLinearGradient(0, 0, NaN, 100) threw exception Error: NotSupportedError: DOM Exception 9.
PASS ctx.createLinearGradient(0, 0, Infinity, 100) threw exception Error: NotSupportedError: DOM Exception 9.
PASS ctx.createLinearGradient(0, 0, -Infinity, 100) threw exception Error: NotSupportedError: DOM Exception 9.
PASS ctx.createLinearGradient(0, NaN, 100, 100) threw exception Error: NotSupportedError: DOM Exception 9.
PASS ctx.createLinearGradient(0, Infinity, 100, 100) threw exception Error: NotSupportedError: DOM Exception 9.
PASS ctx.createLinearGradient(0, -Infinity, 100, 100) threw exception Error: NotSupportedError: DOM Exception 9.
PASS ctx.createLinearGradient(NaN, 0, 100, 100) threw exception Error: NotSupportedError: DOM Exception 9.
PASS ctx.createLinearGradient(Infinity, 0, 100, 100) threw exception Error: NotSupportedError: DOM Exception 9.
PASS ctx.createLinearGradient(-Infinity, 0, 100, 100) threw exception Error: NotSupportedError: DOM Exception 9.
PASS successfullyParsed is true
TEST COMPLETE