browser/devtools/shadereditor/test/browser_webgl-actor-test-03.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/shadereditor/test/browser_webgl-actor-test-03.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     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 notifications about WebGL programs being linked are sent
     1.9 + * after a target navigation.
    1.10 + */
    1.11 +
    1.12 +function ifWebGLSupported() {
    1.13 +  let [target, debuggee, front] = yield initBackend(SIMPLE_CANVAS_URL);
    1.14 +
    1.15 +  let navigated = once(target, "navigate");
    1.16 +  let linked = once(front, "program-linked");
    1.17 +
    1.18 +  yield front.setup({ reload: true });
    1.19 +  ok(true, "The front was setup up successfully.");
    1.20 +
    1.21 +  yield navigated;
    1.22 +  ok(true, "Target automatically navigated when the front was set up.");
    1.23 +
    1.24 +  yield linked;
    1.25 +  ok(true, "A 'program-linked' notification was sent after reloading.");
    1.26 +
    1.27 +  yield removeTab(target.tab);
    1.28 +  finish();
    1.29 +}

mercurial