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-06 22:21:35 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-03-06 22:21:35 +0400
commit0a983024f0845a4f29e6c8bbc492858b7968b39e (patch)
treeb3db4874c2ca45f3242267635273e64e6c729be7 /tests/lib
parentd789162805fda622eb46c717b4d8c846d5b4b3ad (diff)
Refs #4739, in the screenshot test diffviewer, display the location hint using the processed file path if the expected file does not exist yet.
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/screenshot-testing/support/diff-viewer.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/screenshot-testing/support/diff-viewer.js b/tests/lib/screenshot-testing/support/diff-viewer.js
index ded9315024..9745958d43 100644
--- a/tests/lib/screenshot-testing/support/diff-viewer.js
+++ b/tests/lib/screenshot-testing/support/diff-viewer.js
@@ -84,7 +84,8 @@ DiffViewerGenerator.prototype.generate = function (callback) {
}
var entryLocationHint = '',
- m = entry.expected ? entry.expected.match(/\/plugins\/([^\/]*)\//) : null;
+ hintSource = entry.expected || entry.processed,
+ m = hintSource ? hintSource.match(/\/plugins\/([^\/]*)\//) : null;
if (m) {
entryLocationHint = ' <em>(for ' + m[1] + ' plugin)</em>';
}