def setUp(self): # start server self.loop_test_servers = LoopTestServers() MarionetteTestCase.setUp(self) LoopTestDriver.setUp(self, self.marionette) # Although some of these preferences might require restart, we don't # use enforce_gecko_prefs (which would restart), as we need to restart # for the add-on installation anyway. self.marionette.set_prefs(FIREFOX_PREFERENCES) xpi_file = os.environ.get("LOOP_XPI_FILE") if xpi_file: addons = Addons(self.marionette) # XXX We should really use temp=True here, but due to the later # restart to ensure the add-on is installed correctly, this won't work # at the moment. What we need is a fully restartless add-on - bug 1229352 # at which point we should be able to make this install temporarily # and after the restart. addons.install(os.path.abspath(xpi_file)) self.e10s_enabled = os.environ.get("TEST_E10S") == "1" # Restart the browser nicely, so the preferences and add-on installation # take full effect. self.marionette.restart(in_app=True) # this is browser chrome, kids, not the content window just yet self.marionette.set_context("chrome")
def setUp(self): # start server self.loop_test_servers = LoopTestServers() LoopTestDriver.setUp(self) self.e10s_enabled = os.environ.get("TEST_E10S") == "1" # this is browser chrome, kids, not the content window just yet self.driver.set_context("chrome")
def setUp(self): # start server self.loop_test_servers = LoopTestServers() # Set the standalone url for these tests. standalone_url = CONTENT_SERVER_URL + "/" LoopTestDriver.setUp(self, extra_prefs={ "loop.linkClicker.url": standalone_url, "webchannel.allowObject.urlWhitelist": CONTENT_SERVER_URL }) self.e10s_enabled = os.environ.get("TEST_E10S") == "1" # this is browser chrome, kids, not the content window just yet self.driver.set_context("chrome")