diff options
author | diosmosis <benaka@piwik.pro> | 2015-11-02 18:57:44 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-11-02 18:57:44 +0300 |
commit | 7b2763d4c8aa4ee2e55caf40b23c12d581a5e0ac (patch) | |
tree | b4bead8b30e8de45bc5debc15abc0d6c600e96c6 /tests | |
parent | 599e52588fdb2886c2a042de261eae3cfc43bb30 (diff) |
Do not change port in screenshot testing if port is == 0.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/screenshot-testing/support/page-renderer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/screenshot-testing/support/page-renderer.js b/tests/lib/screenshot-testing/support/page-renderer.js index 60d9c1e5cc..6c23fd0243 100644 --- a/tests/lib/screenshot-testing/support/page-renderer.js +++ b/tests/lib/screenshot-testing/support/page-renderer.js @@ -680,7 +680,7 @@ PageRenderer.prototype._setupWebpageEvents = function () { // replaces the requested URL to the piwik URL w/ a port, if it does not have one. This allows us to run UI // tests when Piwik is on a port, w/o having to have different UI screenshots. (This is one half of the // solution, the other half is in config/environment/ui-test.php, where we remove all ports from Piwik URLs.) - if (piwikPort) { + if (piwikPort && piwikPort != 0) { linkObject.setAttribute('href', url); if (linkObject.hostname == piwikHost && (!linkObject.port || linkObject.port == 0 || linkObject.port == 80)) { |