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:
authordizzy <diosmosis@users.noreply.github.com>2021-02-24 02:17:41 +0300
committerGitHub <noreply@github.com>2021-02-24 02:17:41 +0300
commitf8ad318d1b3d5b5473201b4f416a6a8093d208b8 (patch)
treedac62af05c7a79c44cbba77f8d490f46540bcfab /tests/javascript/index.php
parent3f17a042d6130f438efd1f597d6d77cd8fe0023d (diff)
add quick test for userId using ints (#17256)
Diffstat (limited to 'tests/javascript/index.php')
-rw-r--r--tests/javascript/index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index 3fd38fa141..d5b19b41d9 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -3618,7 +3618,7 @@ if ($mysql) {
test("tracking", function() {
- expect(159);
+ expect(160);
// Prevent Opera and HtmlUnit from performing the default action (i.e., load the href URL)
var stopEvent = function (evt) {
@@ -4046,6 +4046,10 @@ if ($mysql) {
// Track pageview
tracker3.trackPageView("DoTrack");
+ var userIdNum = 12345;
+ tracker3.setUserId(userIdNum);
+ tracker3.trackPageView('AnotherTrack');
+
// Firefox 9: navigator.doNotTrack is read-only
navigator.doNotTrack = "yes";
if (navigator.doNotTrack === "yes")