diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-04-11 11:49:15 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-04-11 11:49:15 +0300 |
commit | 0caff058c561ff4c115bbd13a40c4d0919baec73 (patch) | |
tree | 889f9a46856b4c85c4103f433f76d24602469df9 /tests/lib | |
parent | ca0f0cbce78602f53be9f5866ef3ad528385346b (diff) |
Remove extra suffix
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib/screenshot-testing/support/diff-viewer.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/screenshot-testing/support/diff-viewer.js b/tests/lib/screenshot-testing/support/diff-viewer.js index c04a6745b5..58321a201d 100644 --- a/tests/lib/screenshot-testing/support/diff-viewer.js +++ b/tests/lib/screenshot-testing/support/diff-viewer.js @@ -18,7 +18,7 @@ var DiffViewerGenerator = function (diffDir) { DiffViewerGenerator.prototype.getDiffPath = function (testInfo) { var baseDir = path.join(PIWIK_INCLUDE_PATH, 'tests/UI'); - return path.resolve(path.join(baseDir, config.screenshotDiffDir, testInfo.name + '.png')); + return path.resolve(path.join(baseDir, config.screenshotDiffDir, testInfo.name)); }; // TODO: diff output path shouldn't be stored in piwik repo @@ -56,7 +56,7 @@ DiffViewerGenerator.prototype.generate = function (callback) { require('child_process').spawn('cp', [entry.expected, this.getDiffPath(entry)]); } - var filename = entry.name + '.png', + var filename = entry.name, expectedUrl = filename, screenshotRepo = options['screenshot-repo'] || 'piwik/piwik-ui-tests', pathPrefix = options['screenshot-repo'] ? '/Test/UI' : '', |