|
1 | 1 | var fs = require('fs');
|
| 2 | +var path = require('path'); |
2 | 3 |
|
3 | 4 | var d3 = require('d3');
|
4 | 5 |
|
5 |
| -var constants = require('../../tasks/util/constants'); |
6 |
| - |
7 |
| - |
8 | 6 | var $plotlist = document.getElementById('plot-list'),
|
9 | 7 | $images = document.getElementById('plot-images'),
|
10 | 8 | $mock = document.getElementById('plot-mock');
|
11 | 9 |
|
12 |
| -var dirBaseline = constants.pathToTestImageBaselines, |
13 |
| - dirTest = constants.pathToTestImages, |
14 |
| - dirDiff = constants.pathToTestImagesDiff, |
15 |
| - dirMocks = constants.pathToTestImageMocks; |
| 10 | +var pathToRoot = path.join(__dirname, '../../'), |
| 11 | + pathToImageTest = path.join(pathToRoot, 'test/image'), |
| 12 | + pathToBuild = path.join(pathToRoot, 'build/'), |
| 13 | + dirMocks = path.join(pathToImageTest, 'mocks/'), |
| 14 | + dirBaseline = path.join(pathToImageTest, 'baselines/'), |
| 15 | + dirTest = path.join(pathToBuild, 'test_images/'), |
| 16 | + dirDiff = path.join(pathToBuild, 'test_images_diff/'); |
16 | 17 |
|
17 | 18 | // N.B. brfs only understand hard-coded paths
|
18 | 19 | var imageNames = fs.readFileSync(
|
|
0 commit comments