Bug 617382 - Set update url to something real in browser-chrome tests [r=mfinkle]

This commit is contained in:
Wes Johnston 2010-12-07 10:38:00 -08:00
parent 264dbbec34
commit 948a77d9e7
2 changed files with 22 additions and 1 deletions

View File

@ -16,8 +16,9 @@ const CHROME_NAME = "mochikit";
const PREF_AUTOUPDATE_DEFAULT = "extensions.update.autoUpdateDefault"
const PREF_GETADDONS_BROWSESEARCHRESULTS = "extensions.getAddons.search.browseURL";
const PREF_GETADDONS_GETSEARCHRESULTS = "extensions.getAddons.search.url";
const PREF_GETADDONS_GETRECOMMENDED = "extensions.getAddons.recommended.url";
const PREF_GETADDONS_GETRECOMMENDED = "extensions.getAddons.recommended.url";
const PREF_GETADDONS_BROWSERECOMMENDED = "extensions.getAddons.recommended.browseURL";
const PREF_GETADDONS_UPDATE = "extensions.update.url";
const SEARCH_URL = TESTROOT + "browser_details.xml";
var addons = [{
@ -71,6 +72,7 @@ function test() {
Services.prefs.setCharPref(PREF_GETADDONS_BROWSERECOMMENDED, TESTROOT + "browser_install.xml");
Services.prefs.setCharPref(PREF_GETADDONS_BROWSESEARCHRESULTS, TESTROOT + "browser_install.xml");
Services.prefs.setCharPref(PREF_GETADDONS_GETSEARCHRESULTS, TESTROOT + "browser_install.xml");
Services.prefs.setCharPref(PREF_GETADDONS_UPDATE, TESTROOT + "browser_upgrade.rdf");
Services.prefs.setBoolPref("extensions.checkUpdateSecurity", false);
run_next_test();
}

View File

@ -23,4 +23,23 @@
</em:updates>
</Description>
<Description about="urn:mozilla:extension:mochikit@mozilla.org">
<em:updates>
<Seq>
<li>
<Description>
<em:version>1.0</em:version>
<em:targetApplication>
<Description>
<em:id>mochikit@mozilla.org</em:id>
<em:minVersion>0</em:minVersion>
<em:maxVersion>*</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
</li>
</Seq>
</em:updates>
</Description>
</RDF>