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:
authormattab <matthieu.aubry@gmail.com>2014-08-13 16:32:42 +0400
committermattab <matthieu.aubry@gmail.com>2014-08-13 16:32:42 +0400
commite189538841c6c3b2b806c24d02db265428564c63 (patch)
treec315c33b4b489e96771a2b7dd9dee29e5412c50b
parentf5027b7c178cfb98919596e5740c072fd382d0e0 (diff)
refs #5415 fix tests, call storeCustomVariablesInCookie
-rw-r--r--tests/javascript/index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index 7204f3250e..145c842b31 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -1105,6 +1105,7 @@ if ($sqlite) {
ok( visitorIdStart == visitorIdEnd, "tracker.getVisitorId() same at the start and end of process");
// Custom variables
+ tracker.storeCustomVariablesInCookie();
tracker.setCookieNamePrefix("PREFIX");
tracker.setCustomVariable(1, "cookiename", "cookievalue");
deepEqual( tracker.getCustomVariable(1), ["cookiename", "cookievalue"], "setCustomVariable(cvarExists), getCustomVariable()" );
@@ -1142,6 +1143,7 @@ if ($sqlite) {
var tracker2 = Piwik.getTracker();
tracker2.setTrackerUrl("piwik.php");
tracker2.setSiteId(1);
+ tracker2.storeCustomVariablesInCookie();
tracker2.setCustomData({ "token" : getToken() });
tracker2.setCookieNamePrefix("PREFIX");
deepEqual( tracker2.getCustomVariable(1), ["cookiename", "cookievalue"], "getCustomVariable(cvarExists) from cookie" );