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