1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/browser/devtools/webaudioeditor/test/browser_wa_params_view_events.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 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 shader editor shows the appropriate UI when opened. 1.9 + */ 1.10 + 1.11 +function spawnTest() { 1.12 + let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL); 1.13 + let { gFront, $, $$, EVENTS } = panel.panelWin; 1.14 + 1.15 + let started = once(gFront, "start-context"); 1.16 + 1.17 + reload(target); 1.18 + 1.19 + let [[dest, osc, gain], [[_, destID], [_, oscID], [_, gainID]]] = yield Promise.all([ 1.20 + get3(gFront, "create-node"), 1.21 + get3Spread(panel.panelWin, EVENTS.UI_ADD_NODE_LIST) 1.22 + ]); 1.23 + 1.24 + is(dest.actorID, destID, "EVENTS.UI_ADD_NODE_LIST fired for node with ID"); 1.25 + is(osc.actorID, oscID, "EVENTS.UI_ADD_NODE_LIST fired for node with ID"); 1.26 + is(gain.actorID, gainID, "EVENTS.UI_ADD_NODE_LIST fired for node with ID"); 1.27 + 1.28 + yield teardown(panel); 1.29 + finish(); 1.30 +}