Build fix. We need to escape the path or http.request would fail.
[WebKit.git] / Websites / perf.webkit.org / tools / js / v3-models.js
1 'use strict';
2
3 function importFromV3(file, name) {
4     const modelsDirectory = '../../public/v3/';
5
6     global[name] = require(modelsDirectory + file)[name];
7 }
8
9 importFromV3('models/data-model.js', 'DataModelObject');
10 importFromV3('models/data-model.js', 'LabeledObject');
11
12 importFromV3('models/analysis-task.js', 'AnalysisTask');
13 importFromV3('models/bug-tracker.js', 'BugTracker');
14 importFromV3('models/build-request.js', 'BuildRequest');
15 importFromV3('models/builder.js', 'Build');
16 importFromV3('models/builder.js', 'Builder');
17 importFromV3('models/commit-log.js', 'CommitLog');
18 importFromV3('models/manifest.js', 'Manifest');
19 importFromV3('models/measurement-adaptor.js', 'MeasurementAdaptor');
20 importFromV3('models/measurement-cluster.js', 'MeasurementCluster');
21 importFromV3('models/measurement-set.js', 'MeasurementSet');
22 importFromV3('models/metric.js', 'Metric');
23 importFromV3('models/platform.js', 'Platform');
24 importFromV3('models/repository.js', 'Repository');
25 importFromV3('models/root-set.js', 'MeasurementRootSet');
26 importFromV3('models/root-set.js', 'RootSet');
27 importFromV3('models/test.js', 'Test');
28 importFromV3('models/test-group.js', 'TestGroup');
29
30 importFromV3('instrumentation.js', 'Instrumentation');
31
32 global.Statistics = require('../../public/shared/statistics.js');