1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/canvasdebugger/test/browser_canvas-actor-test-01.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +/* Any copyright is dedicated to the Public Domain. 1.5 + http://creativecommons.org/publicdomain/zero/1.0/ */ 1.6 + 1.7 +/** 1.8 + * Tests if the canvas debugger leaks on initialization and sudden destruction. 1.9 + * You can also use this initialization format as a template for other tests. 1.10 + */ 1.11 + 1.12 +function ifTestingSupported() { 1.13 + let [target, debuggee, front] = yield initCallWatcherBackend(SIMPLE_CANVAS_URL); 1.14 + 1.15 + ok(target, "Should have a target available."); 1.16 + ok(debuggee, "Should have a debuggee available."); 1.17 + ok(front, "Should have a protocol front available."); 1.18 + 1.19 + yield removeTab(target.tab); 1.20 + finish(); 1.21 +}