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-09-22 10:49:31 +0400
committermattab <matthieu.aubry@gmail.com>2014-09-22 10:49:31 +0400
commit38457fe029cb03ab882a2f77a619828e4d3973e1 (patch)
tree865b998aa3fa0692c8843dddf326e69e0d48b8ad /tests/javascript
parent83fed18a6ba9f48c1012e96bf1e78358aa4fe2b1 (diff)
Refs #3490 Add `getUserId` Javascript helper + test
Diffstat (limited to 'tests/javascript')
-rw-r--r--tests/javascript/index.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index b381319596..d9faa40a6f 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -2555,7 +2555,7 @@ if ($sqlite) {
});
test("tracking", function() {
- expect(99);
+ expect(100);
/*
* Prevent Opera and HtmlUnit from performing the default action (i.e., load the href URL)
@@ -2787,7 +2787,10 @@ if ($sqlite) {
tracker3.setDoNotTrack(false);
// User ID
- tracker3.setUserId('userid@mydomain.org');
+ var userIdString = 'userid@mydomain.org';
+ tracker3.setUserId(userIdString);
+
+ equal(userIdString, tracker3.getUserId());
// Append tracking url parameter
tracker3.appendToTrackingUrl("appended=1&appended2=value");