Bug 940685 - adjust UI test to expect about:home, r=gavin
authorMike Connor <mconnor@mozilla.com>
Mon, 31 Mar 2014 14:56:03 -0400
changeset 195806 365dad594390ce724bf238f0fd618432baa51a8f
parent 195805 03314fb9df16ebd9f652fbcaf702ea44b28ce803
child 195807 97f2e9782e1c405eac78b5b28300e2b93eaed832
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgavin
bugs940685
milestone31.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 940685 - adjust UI test to expect about:home, r=gavin
browser/components/customizableui/test/browser_901207_searchbar_in_panel.js
--- a/browser/components/customizableui/test/browser_901207_searchbar_in_panel.js
+++ b/browser/components/customizableui/test/browser_901207_searchbar_in_panel.js
@@ -3,17 +3,17 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 "use strict";
 
 let openUILinkInCalled = false;
 let expectOpenUILinkInCall = false;
 this.originalOpenUILinkIn = openUILinkIn;
 openUILinkIn = (aUrl, aWhichTab) => {
-  is(aUrl, Services.search.defaultEngine.searchForm, "Search page should be requested to open.");
+  is(aUrl, "about:home", "about:home should be requested to open.");
   is(aWhichTab, "current", "Should use the current tab for the search page.");
   openUILinkInCalled = true;
   if (!expectOpenUILinkInCall) {
     ok(false, "OpenUILinkIn was called when it shouldn't have been.");
   }
 };
 logActiveElement();