3 beforeEach(function () {
4 AnalysisTask._fetchAllPromise = null;
5 AnalysisTask.clearStaticMap();
6 CommitLog.clearStaticMap();
7 RootSet.clearStaticMap();
8 TestGroup.clearStaticMap();
9 BuildRequest.clearStaticMap();
11 global.osx = Repository.ensureSingleton(9, {name: 'OS X'});
12 global.ios = Repository.ensureSingleton(22, {name: 'iOS'});
13 global.webkit = Repository.ensureSingleton(11, {name: 'WebKit', url: 'http://trac.webkit.org/changeset/$1'});
14 global.sharedRepository = Repository.ensureSingleton(16, {name: 'Shared'});
15 global.builder = new Builder(176, {name: 'WebKit Perf Builder', buildUrl: 'http://build.webkit.org/builders/$builderName/$buildNumber'});
17 global.someTest = Test.ensureSingleton(1928, {name: 'Some test'});
18 global.someMetric = Metric.ensureSingleton(2884, {name: 'Some metric', test: someTest});
19 global.somePlatform = Platform.ensureSingleton(65, {name: 'Some platform', metrics: [someMetric]});