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 notifications about WebGL programs being linked are not sent michael@0: * if the front wasn't set up first. michael@0: */ michael@0: michael@0: function ifWebGLSupported() { michael@0: let [target, debuggee, front] = yield initBackend(SIMPLE_CANVAS_URL); 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 reload(target); michael@0: yield removeTab(target.tab); michael@0: finish(); michael@0: }