2d.gradient.object.invalidoffset

Actual output:

FAIL (fallback content)

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
PassCanvas test: 2d.gradient.object.invalidoffset
Asserts run
Pass
assert_throws_dom("INDEX_SIZE_ERR", function "function() { g.addColorStop(-1, '#000'); }")
    at  /html/canvas/element/fill-and-stroke-styles/2d.gradient.object.invalidoffset.html:24:3
Pass
assert_throws_dom("INDEX_SIZE_ERR", function "function() { g.addColorStop(2, '#000'); }")
    at  /html/canvas/element/fill-and-stroke-styles/2d.gradient.object.invalidoffset.html:25:3
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { g.addColorStop(Infinity, '#000'); }")
    at  /html/canvas/element/fill-and-stroke-styles/2d.gradient.object.invalidoffset.html:26:3
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { g.addColorStop(-Infinity, '#000'); }")
    at  /html/canvas/element/fill-and-stroke-styles/2d.gradient.object.invalidoffset.html:27:3
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "function() { g.addColorStop(NaN, '#000'); }")
    at  /html/canvas/element/fill-and-stroke-styles/2d.gradient.object.invalidoffset.html:28:3