Bug 724832 - Fix mochitest leaks after the latest merge from fx-team; r=rcampbell

This commit is contained in:
Panagiotis Astithas 2012-02-07 14:20:14 +02:00
parent 6a84741227
commit bf2295bb10
2 changed files with 11 additions and 4 deletions

View File

@ -8,7 +8,9 @@
const TAB_URL = "http://example.com/browser/browser/devtools/debugger/" + const TAB_URL = "http://example.com/browser/browser/devtools/debugger/" +
"test/browser_dbg_script-switching.html"; "test/browser_dbg_script-switching.html";
Cu.import("resource:///modules/source-editor.jsm"); let tempScope = {};
Cu.import("resource:///modules/source-editor.jsm", tempScope);
let SourceEditor = tempScope.SourceEditor;
var gPane = null; var gPane = null;
var gTab = null; var gTab = null;

View File

@ -5,9 +5,14 @@
const Cc = Components.classes; const Cc = Components.classes;
const Ci = Components.interfaces; const Ci = Components.interfaces;
const Cu = Components.utils; const Cu = Components.utils;
Cu.import("resource:///modules/devtools/dbg-server.jsm"); let tempScope = {};
Cu.import("resource:///modules/devtools/dbg-client.jsm"); Cu.import("resource:///modules/devtools/dbg-server.jsm", tempScope);
Cu.import("resource:///modules/Services.jsm"); Cu.import("resource:///modules/devtools/dbg-client.jsm", tempScope);
Cu.import("resource:///modules/Services.jsm", tempScope);
let DebuggerServer = tempScope.DebuggerServer;
let DebuggerTransport = tempScope.DebuggerTransport;
let DebuggerClient = tempScope.DebuggerClient;
let Services = tempScope.Services;
const TAB1_URL = "http://example.com/browser/browser/devtools/debugger/test/browser_dbg_tab1.html"; const TAB1_URL = "http://example.com/browser/browser/devtools/debugger/test/browser_dbg_tab1.html";