diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-30 19:13:38 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-30 19:13:38 +0400 |
commit | 110869f4b3136b2b3ca37872092178948394619f (patch) | |
tree | 336e02a62e72655430710f1311e71e268db5e229 /tests/lib | |
parent | db526f85418eaa3f31859029e07b75ddca3a7964 (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.js | 5 |
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']) { |