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 canvas debugger leaks on initialization and sudden destruction. michael@0: * You can also use this initialization format as a template for other tests. michael@0: */ michael@0: michael@0: function ifTestingSupported() { michael@0: let [target, debuggee, front] = yield initCallWatcherBackend(SIMPLE_CANVAS_URL); michael@0: michael@0: ok(target, "Should have a target available."); michael@0: ok(debuggee, "Should have a debuggee available."); michael@0: ok(front, "Should have a protocol front available."); michael@0: michael@0: yield removeTab(target.tab); michael@0: finish(); michael@0: }