Wed, 31 Dec 2014 06:09:35 +0100
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, 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 }