Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2016-04-11 11:49:15 +0300
committermattab <matthieu.aubry@gmail.com>2016-04-11 11:49:15 +0300
commit0caff058c561ff4c115bbd13a40c4d0919baec73 (patch)
tree889f9a46856b4c85c4103f433f76d24602469df9 /tests
parentca0f0cbce78602f53be9f5866ef3ad528385346b (diff)
Remove extra suffix
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/screenshot-testing/support/diff-viewer.js4
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' : '',