diff -r 000000000000 -r 6474c204b198 browser/devtools/canvasdebugger/test/browser_canvas-actor-test-01.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browser/devtools/canvasdebugger/test/browser_canvas-actor-test-01.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,18 @@ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +/** + * Tests if the canvas debugger leaks on initialization and sudden destruction. + * You can also use this initialization format as a template for other tests. + */ + +function ifTestingSupported() { + let [target, debuggee, front] = yield initCallWatcherBackend(SIMPLE_CANVAS_URL); + + ok(target, "Should have a target available."); + ok(debuggee, "Should have a debuggee available."); + ok(front, "Should have a protocol front available."); + + yield removeTab(target.tab); + finish(); +}