Skip to content

Commit 3c21918

Browse files
committed
rm require.resolve from image viewer,
- browserify doesn't like them
1 parent b66b620 commit 3c21918

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

devtools/image_viewer/viewer.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
var fs = require('fs');
2+
var path = require('path');
23

34
var d3 = require('d3');
45

5-
var constants = require('../../tasks/util/constants');
6-
7-
86
var $plotlist = document.getElementById('plot-list'),
97
$images = document.getElementById('plot-images'),
108
$mock = document.getElementById('plot-mock');
119

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/');
1617

1718
// N.B. brfs only understand hard-coded paths
1819
var imageNames = fs.readFileSync(

0 commit comments

Comments
 (0)