diff options
author | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-06 22:21:35 +0400 |
---|---|---|
committer | diosmosis <benakamoorthi@fastmail.fm> | 2014-03-06 22:21:35 +0400 |
commit | 0a983024f0845a4f29e6c8bbc492858b7968b39e (patch) | |
tree | b3db4874c2ca45f3242267635273e64e6c729be7 /tests/lib | |
parent | d789162805fda622eb46c717b4d8c846d5b4b3ad (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.js | 3 |
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>'; } |