Bug 903402 Workaround errors appearing on the console when the cache service tries to get cachePDir which isn't defined for non-mobile platforms. r=jcranmer,a=part bustage fix for CLOSED TREE

This commit is contained in:
Mark Banner 2013-08-12 14:49:53 +01:00
Родитель a5148de949
Коммит da056205d6
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -4,6 +4,15 @@
load("base_index_junk.js");
function run_test() {
// Set these preferences to stop the cache value "cachePDir" being fetched. This
// avoids errors on the javascript console, for which the test would otherwise fail.
// See bug 903402 for follow-up information.
Services.prefs.setComplexValue("browser.cache.disk.parent_directory",
Ci.nsIFile, do_get_profile());
Services.prefs.setComplexValue("browser.cache.offline.parent_directory",
Ci.nsIFile, do_get_profile());
configure_message_injection({mode: "imap", offline: true});
glodaHelperRunTests(tests);
}