2013-09-09 13:33:25 -07:00
|
|
|
/* 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() {
|
2014-09-21 16:07:49 -07:00
|
|
|
let { target, front } = yield initBackend(SIMPLE_CANVAS_URL);
|
2013-09-09 13:33:25 -07:00
|
|
|
|
|
|
|
let linked = once(front, "program-linked");
|
2013-10-30 09:54:01 -07:00
|
|
|
front.setup({ reload: true });
|
2013-09-09 13:33:25 -07:00
|
|
|
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();
|
|
|
|
}
|