2d.layer.exceptions-are-no-op.tentative

Checks that the context state is left unchanged if beginLayer throws.

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
FailChecks that the context state is left unchanged if beginLayer throws.assert_throws_dom: function "() => ctx.endLayer()" threw object "TypeError: ctx.endLayer is not a function" that is not a DOMException InvalidStateError: property "code" is equal to undefined, expected 11
    at Test.<anonymous> (http://www2.wpt.live/html/canvas/offscreen/layers/2d.layer.exceptions-are-no-op.tentative.html:23:3)
    at Test.step (http://www2.wpt.live/resources/testharness.js:2638:25)
    at test (http://www2.wpt.live/resources/testharness.js:633:30)
    at http://www2.wpt.live/html/canvas/offscreen/layers/2d.layer.exceptions-are-no-op.tentative.html:14:1
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => ctx.beginLayer({filter: {name: 'colorMatrix',                                                   values: 'foo'}})")
    at Test.<anonymous> ( /html/canvas/offscreen/layers/2d.layer.exceptions-are-no-op.tentative.html:19:3)
Fail
assert_throws_dom("InvalidStateError", function "() => ctx.endLayer()")
    at Test.<anonymous> ( /html/canvas/offscreen/layers/2d.layer.exceptions-are-no-op.tentative.html:23:3)