Bug 1068400 - Test against about:robots instead of about:newtab which mess up with addTab helper (never resolves) r=jryans draft
authorAlexandre Poirot <poirot.alex@gmail.com>
Thu, 27 Oct 2016 06:29:39 -0700
changeset 430295 e49e27635daecb8bd08ee3850896bd4e60f5b4df
parent 430294 ce7318270533d69d7c54fcc98f6be9888f3b6d81
child 535177 d0850f02640da35e4c5cac46afd1dc60900a7a23
push id33795
push userbmo:poirot.alex@gmail.com
push dateThu, 27 Oct 2016 13:32:14 +0000
reviewersjryans
bugs1068400
milestone52.0a1
Bug 1068400 - Test against about:robots instead of about:newtab which mess up with addTab helper (never resolves) r=jryans MozReview-Commit-ID: AnvRDQuZREY
devtools/client/framework/test/browser_toolbox_remoteness_change.js
--- a/devtools/client/framework/test/browser_toolbox_remoteness_change.js
+++ b/devtools/client/framework/test/browser_toolbox_remoteness_change.js
@@ -1,21 +1,22 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
 var {Toolbox} = require("devtools/client/framework/toolbox");
 
-const URL_1 = "about:newtab";
+const URL_1 = "about:robots";
 const URL_2 = "data:text/html;charset=UTF-8," +
   encodeURIComponent("<div id=\"remote-page\">foo</div>");
 
 add_task(function* () {
   info("Open a tab on a URL supporting only running in parent process");
   let tab = yield addTab(URL_1);
-  is(tab.linkedBrowser.getAttribute("remote"), "", "Opened a non-remote tab on about:newtab");
+  is(tab.linkedBrowser.currentURI.spec, URL_1, "We really are on the expected document");
+  is(tab.linkedBrowser.getAttribute("remote"), "", "And running in parent process");
 
   let toolbox = yield openToolboxForTab(tab);
 
   let onToolboxDestroyed = toolbox.once("destroyed");
   let onToolboxCreated = gDevTools.once("toolbox-created");
 
   info("Navigate to a URL supporting remote process");
   let onLoaded = BrowserTestUtils.browserLoaded(tab.linkedBrowser);