Bug 1027125 - Set sync signup pref for button test. r=ttaubert, a=test-only
authorGijs Kruitbosch <gijskruitbosch@gmail.com>
Wed, 25 Jun 2014 16:23:42 +0100
changeset 200641 a7eddfb0e18fd3e6b82eafb38728a1522799a2d0
parent 200640 643d6fce5bee186ac4923d1b5479a177885c9130
child 200642 be6b13f262cc172ea73e36d81160b21692195c84
push id486
push userasasaki@mozilla.com
push dateMon, 14 Jul 2014 18:39:42 +0000
treeherdermozilla-release@d33428174ff1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersttaubert, test-only
bugs1027125
milestone31.0
Bug 1027125 - Set sync signup pref for button test. r=ttaubert, a=test-only
browser/components/customizableui/test/browser_967000_button_sync.js
--- a/browser/components/customizableui/test/browser_967000_button_sync.js
+++ b/browser/components/customizableui/test/browser_967000_button_sync.js
@@ -4,16 +4,17 @@
 
 "use strict";
 
 let initialLocation = gBrowser.currentURI.spec;
 let newTab = null;
 
 add_task(function() {
   info("Check Sync button functionality");
+  Services.prefs.setCharPref("identity.fxaccounts.remote.signup.uri", "http://example.com/");
 
   // add the Sync button to the panel
   CustomizableUI.addWidgetToArea("sync-button", CustomizableUI.AREA_PANEL);
 
   // check the button's functionality
   yield PanelUI.show();
 
   let syncButton = document.getElementById("sync-button");
@@ -29,16 +30,17 @@ add_task(function() {
   if(isPanelUIOpen()) {
     let panelHidePromise = promisePanelHidden(window);
     PanelUI.hide();
     yield panelHidePromise;
   }
 });
 
 add_task(function asyncCleanup() {
+  Services.prefs.clearUserPref("identity.fxaccounts.remote.signup.uri");
   // reset the panel UI to the default state
   yield resetCustomization();
   ok(CustomizableUI.inDefaultState, "The panel UI is in default state again.");
 
   // restore the tabs
   gBrowser.addTab(initialLocation);
   gBrowser.removeTab(newTab);
 });