Bug 984014 - Telemetry experiments - Test experiment update. r=felipe

This commit is contained in:
Georg Fritzsche
2014-03-18 22:52:30 +01:00
parent 61a6fabe2d
commit a0d9f076c3
7 changed files with 112 additions and 11 deletions

View File

@@ -8,7 +8,6 @@ Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/osfile.jsm");
Cu.import("resource:///modules/experiments/Experiments.jsm");
const FILE_CACHE = "experiments.json";
const PREF_EXPERIMENTS_ENABLED = "experiments.enabled";
const PREF_LOGGING_LEVEL = "experiments.logging.level";
const PREF_LOGGING_DUMP = "experiments.logging.dump";
@@ -20,11 +19,6 @@ let gHttpServer = null;
let gHttpRoot = null;
let gPolicy = new Experiments.Policy();
function removeCacheFile() {
let path = OS.Path.join(OS.Constants.Path.profileDir, FILE_CACHE);
return OS.File.remove(path);
}
function run_test() {
createAppInfo();
gProfileDir = do_get_profile();
@@ -84,3 +78,7 @@ add_task(function* test_fetchInvalid() {
yield ex.uninit();
});
add_task(function* shutdown() {
yield removeCacheFile();
});