Bug 1307239 - Fix openNewTabAndConsole to use URL provided as argument;r=nchevobbe draft
authorJulian Descottes <jdescottes@mozilla.com>
Wed, 28 Dec 2016 12:07:13 +0100
changeset 457606 6124d2eff2afeebd9fdae6d4742e17cd13b6a613
parent 456196 f13abb8ba9f366c9f32a3146245adf642528becd
child 457607 ad20497355713c67ec6b40ebe162065ce0b672e6
child 457640 9d54abdb688ce0ee0873e16830299862ccbc050c
child 457663 ec56dc20eb650529d8226af53ff3a4a7de5f6900
child 457664 6acadee3a9ba4c77d069b0af6fe93b167fa47d92
push id40833
push userjdescottes@mozilla.com
push dateMon, 09 Jan 2017 09:48:09 +0000
reviewersnchevobbe
bugs1307239
milestone53.0a1
Bug 1307239 - Fix openNewTabAndConsole to use URL provided as argument;r=nchevobbe MozReview-Commit-ID: 52yNq8GqxT7
devtools/client/webconsole/new-console-output/test/mochitest/head.js
--- a/devtools/client/webconsole/new-console-output/test/mochitest/head.js
+++ b/devtools/client/webconsole/new-console-output/test/mochitest/head.js
@@ -35,17 +35,17 @@ registerCleanupFunction(function* () {
  *
  * @param string url
  *        The URL for the tab to be opened.
  * @return Promise
  *         Resolves when the tab has been added, loaded and the toolbox has been opened.
  *         Resolves to the toolbox.
  */
 var openNewTabAndConsole = Task.async(function* (url) {
-  let toolbox = yield openNewTabAndToolbox(TEST_URI, "webconsole");
+  let toolbox = yield openNewTabAndToolbox(url, "webconsole");
   let hud = toolbox.getCurrentPanel().hud;
   hud.jsterm._lazyVariablesView = false;
   return hud;
 });
 
 /**
  * Wait for messages in the web console output, resolving once they are receieved.
  *