Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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, WebAudioParamView } = panel.panelWin;
11 let gVars = WebAudioParamView._paramsView;
13 let started = once(gFront, "start-context");
15 reload(target);
17 let [[dest, osc, gain], [[_, destID], [_, oscID], [_, gainID]]] = yield Promise.all([
18 get3(gFront, "create-node"),
19 get3Spread(panel.panelWin, EVENTS.UI_ADD_NODE_LIST)
20 ]);
23 checkVariableView(gVars, 1, {
24 "type": "\"sine\"",
25 "frequency": 440,
26 "detune": 0
27 });
29 checkVariableView(gVars, 2, {
30 "gain": 0
31 });
33 yield modifyVariableView(panel.panelWin, gVars, 1, "type", "square");
35 checkVariableView(gVars, 1, {
36 "type": "\"square\""
37 });
39 yield teardown(panel);
40 finish();
41 }