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/lib
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-03-30 19:13:38 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-03-30 19:13:38 +0400
commit110869f4b3136b2b3ca37872092178948394619f (patch)
tree336e02a62e72655430710f1311e71e268db5e229 /tests/lib
parentdb526f85418eaa3f31859029e07b75ddca3a7964 (diff)
Fix diff viewer generation github links for plugin tests.
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/screenshot-testing/support/diff-viewer.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/lib/screenshot-testing/support/diff-viewer.js b/tests/lib/screenshot-testing/support/diff-viewer.js
index 58efe9dcfe..0baaea97fc 100644
--- a/tests/lib/screenshot-testing/support/diff-viewer.js
+++ b/tests/lib/screenshot-testing/support/diff-viewer.js
@@ -68,8 +68,9 @@ DiffViewerGenerator.prototype.generate = function (callback) {
if (entry.expected) {
var expectedUrl = self.getUrlForPath(entry.expected),
screenshotRepo = options['screenshot-repo'] || 'piwik/piwik-ui-tests',
- expectedUrlGithub = 'https://raw.github.com/' + screenshotRepo + '/master/expected-ui-screenshots/'
- + entry.name + '.png';
+ pathPrefix = options['screenshot-repo'] ? '/Test/UI' : '',
+ expectedUrlGithub = 'https://raw.github.com/' + screenshotRepo + '/master' + pathPrefix +
+ + '/expected-ui-screenshots/' + entry.name + '.png';
var expectedHtml = '';
if (!options['assume-artifacts']) {