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:
authordiosmosis <diosmosis@users.noreply.github.com>2022-11-11 21:57:29 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2022-11-11 21:57:29 +0300
commitc0dd93ec20147711b7ad6626ce046c038cc94807 (patch)
tree24f7670e301e790dc97d27f0d7ef0c46c193d39e
parent81eadebb3b8ae5a816e9220ce867b026806d034c (diff)
-rw-r--r--tests/javascript/index.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index cd1b18a07c..6ab2b84d06 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -3693,7 +3693,7 @@ if ($mysql) {
});
test("tracking", function() {
- expect(182);
+ expect(183);
// Prevent Opera and HtmlUnit from performing the default action (i.e., load the href URL)
var stopEvent = function (evt) {
@@ -3981,6 +3981,10 @@ if ($mysql) {
equal(3, requestQueue.requests.length, "does not increase number of queued requests but send it directly");
requestQueue.enabled = true;
+ var fullQueueRequest = tracker.getRequest('myQueue=bar&queue=5');
+ tracker.trackPageView('is full request');
+ tracker.queueRequest(fullQueueRequest, true);
+
// Custom variables
tracker.storeCustomVariablesInCookie();
tracker.setCookieNamePrefix("PREFIX");
@@ -4267,6 +4271,8 @@ if ($mysql) {
ok( /myQueue=bar&queue=3/.test( results ), "queueRequest sends queued requests");
ok( /myQueueDisabled=bar&queue=4/.test( results ), "queueRequest sends queued requests when disabled directly");
+ ok( results.indexOf(fullQueueRequest + '&uadata=%7B%7D</span>') !== -1, "queueRequest does not duplicate params if isFullRequest is used queued");
+
// Test Custom variables
ok( /SaveCustomVariableCookie.*&cvar=%7B%222%22%3A%5B%22cookiename2PAGE%22%2C%22cookievalue2PAGE%22%5D%7D.*&_cvar=%7B%221%22%3A%5B%22cookiename%22%2C%22cookievalue%22%5D%2C%222%22%3A%5B%22cookiename2%22%2C%22cookievalue2%22%5D%7D/.test(results), "test custom vars are set");