Backed out changeset 6d9fb906e5b9 (bug 1072141) for dt test failures

This commit is contained in:
Carsten "Tomcat" Book 2014-09-24 11:33:00 +02:00
parent 0950ebf6f1
commit 09ed776a54
34 changed files with 37 additions and 35 deletions

View File

@ -6,7 +6,7 @@
*/
function spawnTest () {
let { target, front } = yield initBackend(SIMPLE_NODES_URL);
let [target, debuggee, front] = yield initBackend(SIMPLE_NODES_URL);
let [_, nodes] = yield Promise.all([
front.setup({ reload: true }),
getN(front, "create-node", 14)

View File

@ -6,7 +6,7 @@
*/
function spawnTest () {
let { target, front } = yield initBackend(SIMPLE_NODES_URL);
let [target, debuggee, front] = yield initBackend(SIMPLE_NODES_URL);
let [_, nodes] = yield Promise.all([
front.setup({ reload: true }),
getN(front, "create-node", 14)

View File

@ -7,7 +7,7 @@
*/
function spawnTest() {
let { target, front } = yield initBackend(SIMPLE_NODES_URL);
let [target, debuggee, front] = yield initBackend(SIMPLE_NODES_URL);
let [_, nodes] = yield Promise.all([
front.setup({ reload: true }),
getN(front, "create-node", 14)

View File

@ -6,7 +6,7 @@
*/
function spawnTest () {
let { target, front } = yield initBackend(SIMPLE_CONTEXT_URL);
let [target, debuggee, front] = yield initBackend(SIMPLE_CONTEXT_URL);
let [_, [destNode, oscNode, gainNode]] = yield Promise.all([
front.setup({ reload: true }),
get3(front, "create-node")

View File

@ -6,7 +6,7 @@
*/
function spawnTest () {
let { target, front } = yield initBackend(SIMPLE_NODES_URL);
let [target, debuggee, front] = yield initBackend(SIMPLE_NODES_URL);
let [_, nodes] = yield Promise.all([
front.setup({ reload: true }),
getN(front, "create-node", 14)

View File

@ -6,7 +6,7 @@
*/
function spawnTest () {
let { target, front } = yield initBackend(SIMPLE_NODES_URL);
let [target, debuggee, front] = yield initBackend(SIMPLE_NODES_URL);
let [_, nodes] = yield Promise.all([
front.setup({ reload: true }),
getN(front, "create-node", 14)

View File

@ -10,7 +10,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(DESTROY_NODES_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(DESTROY_NODES_URL);
let { panelWin } = panel;
let { gFront, $, $$, gAudioNodes } = panelWin;

View File

@ -6,7 +6,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { gFront, $ } = panel.panelWin;
is($("#reload-notice").hidden, false,

View File

@ -7,7 +7,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(COMPLEX_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(COMPLEX_CONTEXT_URL);
let panelWin = panel.panelWin;
let { gFront, $, $$, InspectorView } = panelWin;

View File

@ -6,7 +6,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $, $$, MARKER_STYLING } = panelWin;

View File

@ -8,7 +8,7 @@
let connectCount = 0;
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS, gAudioNodes } = panelWin;

View File

@ -6,7 +6,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(COMPLEX_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(COMPLEX_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $, $$ } = panelWin;

View File

@ -6,7 +6,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(CONNECT_TOGGLE_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(CONNECT_TOGGLE_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS } = panelWin;

View File

@ -6,7 +6,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(CONNECT_MULTI_PARAM_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(CONNECT_MULTI_PARAM_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS } = panelWin;

View File

@ -6,7 +6,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS } = panelWin;

View File

@ -6,7 +6,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS, ContextView } = panelWin;

View File

@ -7,7 +7,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS, InspectorView } = panelWin;
let gVars = InspectorView._propsView;

View File

@ -7,7 +7,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS, InspectorView } = panelWin;
let gVars = InspectorView._propsView;

View File

@ -7,7 +7,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $ } = panelWin;

View File

@ -6,7 +6,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS, InspectorView } = panelWin;
let gVars = InspectorView._propsView;

View File

@ -6,7 +6,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(COMPLEX_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(COMPLEX_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS, InspectorView } = panelWin;
let gVars = InspectorView._propsView;

View File

@ -35,7 +35,7 @@ function waitForDeviceClosed() {
}
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(MEDIA_NODES_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(MEDIA_NODES_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS, InspectorView } = panelWin;
let gVars = InspectorView._propsView;

View File

@ -7,7 +7,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(BUFFER_AND_ARRAY_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(BUFFER_AND_ARRAY_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS, InspectorView } = panelWin;
let gVars = InspectorView._propsView;

View File

@ -7,7 +7,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_NODES_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_NODES_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS, InspectorView } = panelWin;
let gVars = InspectorView._propsView;

View File

@ -6,7 +6,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $, $$, EVENTS, InspectorView } = panelWin;
let gVars = InspectorView._propsView;

View File

@ -7,7 +7,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { gFront, $ } = panel.panelWin;
is($("#reload-notice").hidden, false,

View File

@ -7,7 +7,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $ } = panelWin;

View File

@ -7,7 +7,7 @@
*/
function spawnTest() {
let { target, panel } = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let [target, debuggee, panel] = yield initWebAudioEditor(SIMPLE_CONTEXT_URL);
let { panelWin } = panel;
let { gFront, $, InspectorView } = panelWin;

View File

@ -8,7 +8,7 @@
function spawnTest() {
Services.prefs.setBoolPref("devtools.command-button-frames.enabled", true);
let { target, panel, toolbox } = yield initWebAudioEditor(IFRAME_CONTEXT_URL);
let [target, debuggee, panel, toolbox] = yield initWebAudioEditor(IFRAME_CONTEXT_URL);
let { gFront, $ } = panel.panelWin;
is($("#reload-notice").hidden, false,

View File

@ -6,7 +6,7 @@
*/
function spawnTest () {
let { target, front } = yield initBackend(CONNECT_PARAM_URL);
let [target, debuggee, front] = yield initBackend(CONNECT_PARAM_URL);
let [, , [destNode, carrierNode, modNode, gainNode], , connectParam] = yield Promise.all([
front.setup({ reload: true }),
once(front, "start-context"),

View File

@ -6,7 +6,7 @@
*/
function spawnTest () {
let { target, front } = yield initBackend(DESTROY_NODES_URL);
let [target, debuggee, front] = yield initBackend(DESTROY_NODES_URL);
let waitUntilDestroyed = getN(front, "destroy-node", 10);
let [, , created] = yield Promise.all([

View File

@ -6,7 +6,7 @@
*/
function spawnTest () {
let { target, front } = yield initBackend(SIMPLE_CONTEXT_URL);
let [target, debuggee, front] = yield initBackend(SIMPLE_CONTEXT_URL);
let [_, __, [destNode, oscNode, gainNode], [connect1, connect2]] = yield Promise.all([
front.setup({ reload: true }),
once(front, "start-context"),

View File

@ -138,11 +138,12 @@ function initBackend(aUrl) {
return Task.spawn(function*() {
let tab = yield addTab(aUrl);
let target = TargetFactory.forTab(tab);
let debuggee = target.window.wrappedJSObject;
yield target.makeRemote();
let front = new WebAudioFront(target.client, target.form);
return { target, front };
return [target, debuggee, front];
});
}
@ -152,13 +153,14 @@ function initWebAudioEditor(aUrl) {
return Task.spawn(function*() {
let tab = yield addTab(aUrl);
let target = TargetFactory.forTab(tab);
let debuggee = target.window.wrappedJSObject;
yield target.makeRemote();
Services.prefs.setBoolPref("devtools.webaudioeditor.enabled", true);
let toolbox = yield gDevTools.showToolbox(target, "webaudioeditor");
let panel = toolbox.getCurrentPanel();
return { target, panel, toolbox };
return [target, debuggee, panel, toolbox];
});
}

View File

@ -434,10 +434,10 @@ let WebAudioActor = exports.WebAudioActor = protocol.ActorClass({
if (!this._initialized) {
return;
}
this.tabActor = null;
this._initialized = false;
off(this.tabActor, "window-destroyed", this._onGlobalDestroyed);
off(this.tabActor, "window-ready", this._onGlobalCreated);
this.tabActor = null;
this._nativeToActorID = null;
this._callWatcher.eraseRecording();
this._callWatcher.finalize();