mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 650965 Permaorange, add logging for addons tests r=mbrubeck
This commit is contained in:
parent
80d3f2f2bc
commit
c712fb1cbc
@ -19,6 +19,8 @@ const PREF_GETADDONS_GETSEARCHRESULTS = "extensions.getAddons.search.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 PREF_ADDONS_LOGGING = "extensions.logging.enabled";
|
||||
const PREF_ADDONS_SECURITY = "extensions.checkUpdateSecurity";
|
||||
const SEARCH_URL = TESTROOT + "browser_details.xml";
|
||||
const ADDON_IMG = "chrome://browser/skin/images/alert-addons-30.png";
|
||||
|
||||
@ -76,7 +78,8 @@ function test() {
|
||||
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);
|
||||
Services.prefs.setBoolPref(PREF_ADDONS_SECURITY, false);
|
||||
Services.prefs.setBoolPref(PREF_ADDONS_LOGGING, true);
|
||||
run_next_test();
|
||||
}
|
||||
|
||||
@ -84,11 +87,15 @@ function end_test() {
|
||||
close_manager();
|
||||
Services.prefs.clearUserPref(PREF_GETADDONS_GETRECOMMENDED);
|
||||
Services.prefs.clearUserPref(PREF_GETADDONS_BROWSERECOMMENDED);
|
||||
Services.prefs.clearUserPref(PREF_GETADDONS_GETSEARCHRESULTS);
|
||||
Services.prefs.clearUserPref(PREF_GETADDONS_BROWSESEARCHRESULTS);
|
||||
finish();
|
||||
Services.prefs.clearUserPref(PREF_GETADDONS_GETSEARCHRESULTS);
|
||||
Services.prefs.clearUserPref(PREF_GETADDONS_UPDATE);
|
||||
Services.prefs.clearUserPref(PREF_ADDONS_SECURITY);
|
||||
Services.prefs.clearUserPref(PREF_ADDONS_LOGGING);
|
||||
}
|
||||
|
||||
registerCleanupFunction(end_test);
|
||||
|
||||
function add_test(test) {
|
||||
gPendingTests.push(test);
|
||||
}
|
||||
@ -98,8 +105,7 @@ function run_next_test() {
|
||||
info("Test " + gTestsRun + " took " + (Date.now() - gTestStart) + "ms");
|
||||
|
||||
if (gPendingTests.length == 0) {
|
||||
end_test();
|
||||
return;
|
||||
finish();
|
||||
}
|
||||
|
||||
gTestsRun++;
|
||||
|
Loading…
Reference in New Issue
Block a user