Bug 1509315 - Remove leftover from debugger head.js file. r=yulia
authorAlexandre Poirot <poirot.alex@gmail.com>
Tue, 27 Nov 2018 21:48:01 +0000
changeset 507606 322f2dd202990fc3bc215a7296423ca683738244
parent 507605 18f76c41550516fb1cf4bcbe8bfaf82d480322e7
child 507607 3eadd3d0580012f95a9d8e8ac24befb60d93b3fd
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyulia
bugs1509315
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1509315 - Remove leftover from debugger head.js file. r=yulia I also removed the get root form leftover. MozReview-Commit-ID: DxPwG9a5YAG Depends on D12731 Differential Revision: https://phabricator.services.mozilla.com/D12732
devtools/client/debugger/test/mochitest/head.js
devtools/server/tests/browser/head.js
--- a/devtools/client/debugger/test/mochitest/head.js
+++ b/devtools/client/debugger/test/mochitest/head.js
@@ -1061,34 +1061,8 @@ function waitForDispatch(panel, type, ev
     info("Waiting for " + type + " to dispatch " + eventRepeat + " time(s)");
     while (count < eventRepeat) {
       yield _afterDispatchDone(controller, actionType);
       count++;
       info(type + " dispatched " + count + " time(s)");
     }
   });
 }
-
-async function initWorkerDebugger(TAB_URL, WORKER_URL) {
-  DebuggerServer.init();
-  DebuggerServer.registerAllActors();
-
-  let client = new DebuggerClient(DebuggerServer.connectPipe());
-  await connect(client);
-
-  let tab = await addTab(TAB_URL);
-  let { tabs } = await listTabs(client);
-  let [, targetFront] = await attachTarget(client, findTab(tabs, TAB_URL));
-
-  await createWorkerInTab(tab, WORKER_URL);
-
-  let { workers } = await listWorkers(targetFront);
-  let workerTargetFront = findWorker(workers, WORKER_URL);
-
-  let toolbox = await gDevTools.showToolbox(TargetFactory.forWorker(workerTargetFront),
-                                            "jsdebugger",
-                                            Toolbox.HostType.WINDOW);
-
-  let debuggerPanel = toolbox.getCurrentPanel();
-  let gDebugger = debuggerPanel.panelWin;
-
-  return {client, tab, targetFront, workerTargetFront, toolbox, gDebugger};
-}
--- a/devtools/server/tests/browser/head.js
+++ b/devtools/server/tests/browser/head.js
@@ -112,25 +112,16 @@ async function initInspectorFront(url) {
 
   const inspector = await target.getInspector();
   const walker = inspector.walker;
 
   return {inspector, walker, target};
 }
 
 /**
- * Gets the RootActor form from a DebuggerClient.
- * @param {DebuggerClient} client
- * @return {RootActor} Resolves when connected.
- */
-function getRootForm(client) {
-  return client.listTabs();
-}
-
-/**
  * Wait until a DebuggerClient is connected.
  * @param {DebuggerClient} client
  * @return {Promise} Resolves when connected.
  */
 function waitUntilClientConnected(client) {
   return new Promise(resolve => {
     client.addOneTimeListener("connected", resolve);
   });