diff -r 000000000000 -r 6474c204b198 browser/devtools/shadereditor/test/browser_webgl-actor-test-11.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/browser/devtools/shadereditor/test/browser_webgl-actor-test-11.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,25 @@ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +/** + * Tests if the WebGL context is never instrumented anymore after the + * finalize method is called. + */ + +function ifWebGLSupported() { + let [target, debuggee, front] = yield initBackend(SIMPLE_CANVAS_URL); + + let linked = once(front, "program-linked"); + front.setup({ reload: true }); + yield linked; + ok(true, "Canvas was correctly instrumented on the first navigation."); + + once(front, "program-linked").then(() => { + ok(false, "A 'program-linked' notification shouldn't have been sent!"); + }); + + yield front.finalize(); + yield reload(target); + yield removeTab(target.tab); + finish(); +}