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:
authorThomas Steur <tsteur@users.noreply.github.com>2017-05-05 14:54:23 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2017-05-05 14:54:23 +0300
commit50c492acfbc0a8d481a7cbd9f6288f2a4998a130 (patch)
tree1d616cabf78455a75aef0c9f4ab1bfa014b49087 /tests/javascript
parente1d158f10e46a6f875883f26eea99d5927d024aa (diff)
make sure to delete any set cookie, better return value for getCookie
Diffstat (limited to 'tests/javascript')
-rw-r--r--tests/javascript/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index 2fed61b4a3..163baa40f7 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -2523,7 +2523,7 @@ function PiwikTest() {
});
test("Tracker setDomains(), isSiteHostName(), isSiteHostPath(), and getLinkIfShouldBeProcessed()", function() {
- expect(167);
+ expect(168);
var tracker = Piwik.getTracker();
var initialDomains = tracker.getDomains();
@@ -2778,6 +2778,7 @@ function PiwikTest() {
strictEqual(true, tracker.hasCookies());
tracker.setSessionCookie('mytest', 'myvalue');
equal('myvalue', tracker.getCookie('mytest'));
+ strictEqual(null, tracker.getCookie('34343434343'), 'not existing cookie returns null');
});
test("Tracker CrossDomainLinking()", function() {