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
diff options
context:
space:
mode:
authorStefan Giehl <stefan.giehl@mayflower.de>2017-07-14 16:00:56 +0300
committerStefan Giehl <stefan.giehl@mayflower.de>2017-07-14 16:00:56 +0300
commit301332312e558af9cc423842cf37ab7bb38973cc (patch)
tree9541d78839884be074b4dcf414e4bb57e497ee50 /tests/javascript
parent176f5738e362cd4e0764b96839f38e2a640337e1 (diff)
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...
Diffstat (limited to 'tests/javascript')
-rw-r--r--tests/javascript/index.php4
1 files 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');