browser/devtools/webaudioeditor/test/browser_wa_params_view_events.js

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 /* Any copyright is dedicated to the Public Domain.
     2    http://creativecommons.org/publicdomain/zero/1.0/ */
     4 /**
     5  * Tests if the shader editor shows the appropriate UI when opened.
     6  */
     8 function spawnTest() {
     9   let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
    10   let { gFront, $, $$, EVENTS } = panel.panelWin;
    12   let started = once(gFront, "start-context");
    14   reload(target);
    16   let [[dest, osc, gain], [[_, destID], [_, oscID], [_, gainID]]] = yield Promise.all([
    17     get3(gFront, "create-node"),
    18     get3Spread(panel.panelWin, EVENTS.UI_ADD_NODE_LIST)
    19   ]);
    21   is(dest.actorID, destID, "EVENTS.UI_ADD_NODE_LIST fired for node with ID");
    22   is(osc.actorID, oscID, "EVENTS.UI_ADD_NODE_LIST fired for node with ID");
    23   is(gain.actorID, gainID, "EVENTS.UI_ADD_NODE_LIST fired for node with ID");
    25   yield teardown(panel);
    26   finish();
    27 }

mercurial