michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: /** michael@0: * Tests if the WebGL context is never instrumented anymore after the michael@0: * finalize method is called. michael@0: */ michael@0: michael@0: function ifWebGLSupported() { michael@0: let [target, debuggee, front] = yield initBackend(SIMPLE_CANVAS_URL); michael@0: michael@0: let linked = once(front, "program-linked"); michael@0: front.setup({ reload: true }); michael@0: yield linked; michael@0: ok(true, "Canvas was correctly instrumented on the first navigation."); michael@0: michael@0: once(front, "program-linked").then(() => { michael@0: ok(false, "A 'program-linked' notification shouldn't have been sent!"); michael@0: }); michael@0: michael@0: yield front.finalize(); michael@0: yield reload(target); michael@0: yield removeTab(target.tab); michael@0: finish(); michael@0: }