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
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-11-02 18:57:44 +0300
committerdiosmosis <benaka@piwik.pro>2015-11-02 18:57:44 +0300
commit7b2763d4c8aa4ee2e55caf40b23c12d581a5e0ac (patch)
treeb4bead8b30e8de45bc5debc15abc0d6c600e96c6 /tests
parent599e52588fdb2886c2a042de261eae3cfc43bb30 (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.js2
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)) {