From 301332312e558af9cc423842cf37ab7bb38973cc Mon Sep 17 00:00:00 2001 From: Stefan Giehl <stefan.giehl@mayflower.de> Date: Fri, 14 Jul 2017 15:00:56 +0200 Subject: [PATCH] Fixes failing JS tests Note: Tests were failing as current time stamp no starts with 15 instead of 14. Changing it should fix it for the next years, until it starts with 16... --- tests/javascript/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/javascript/index.php b/tests/javascript/index.php index 163baa40f7..fc18670f13 100644 --- a/tests/javascript/index.php +++ b/tests/javascript/index.php @@ -2873,11 +2873,11 @@ function PiwikTest() { tracker.setUserId('test'); var replacedUrl = makeReplaceHrefForCrossDomainLink('http://www.example.com'); - ok(replacedUrl.indexOf('http://www.example.com?pk_vid=a94a8fe5ccb19ba614') === 0, 'replaceHrefForCrossDomainLink, should set parameters if a URL is given'); + ok(replacedUrl.indexOf('http://www.example.com?pk_vid=a94a8fe5ccb19ba615') === 0, 'replaceHrefForCrossDomainLink, should set parameters if a URL is given ' + replacedUrl); ok(replacedUrl.indexOf(browserId) > 20, 'replaceHrefForCrossDomainLink, should set browserId if a url is given'); replacedUrl = makeReplaceHrefForCrossDomainLink(makeUrlWithVisitorId(true, currentTimestamp, 'foobar')); - ok(replacedUrl.indexOf('http://www.example.com/?pk_vid=a94a8fe5ccb19ba614') === 0, 'replaceHrefForCrossDomainLink, should replace parameters if a URL is given'); + ok(replacedUrl.indexOf('http://www.example.com/?pk_vid=a94a8fe5ccb19ba615') === 0, 'replaceHrefForCrossDomainLink, should replace parameters if a URL is given'); ok(replacedUrl.indexOf(browserId) > 20, 'replaceHrefForCrossDomainLink, should replace browserId if a URL is given'); -- GitLab