Bug 993084 - Fix experiments health report provider test. r=bsmedberg

This commit is contained in:
Georg Fritzsche 2014-04-15 18:12:26 +02:00
parent af2e25e896
commit 02a9e562fa
2 changed files with 7 additions and 1 deletions

View File

@ -1889,7 +1889,7 @@ ExperimentsProvider.prototype = Object.freeze({
recordLastActiveExperiment: function () {
if (!gExperimentsEnabled) {
return;
return Promise.resolve();
}
if (!this._experiments) {

View File

@ -27,10 +27,16 @@ add_test(function setup() {
do_get_profile();
initTestLogging();
Services.prefs.setBoolPref(PREF_EXPERIMENTS_ENABLED, true);
Services.prefs.setBoolPref(PREF_TELEMETRY_ENABLED, true);
Services.prefs.setBoolPref(PREF_HEALTHREPORT_ENABLED, true);
run_next_test();
});
add_task(function test_constructor() {
Experiments.instance();
yield Experiments._mainTask;
let provider = new ExperimentsProvider();
});