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>2020-12-03 22:42:14 +0300
committerGitHub <noreply@github.com>2020-12-03 22:42:14 +0300
commit0d5053c6d0f0f539d8ad460af70ce7cc86420fd0 (patch)
tree15dc3ca7f8a872ad7abf1c7f44b1f26885b15d32 /tests/javascript/index.php
parent8e2d7c590c952568bbfa190b10b967ea33269ad5 (diff)
When forcing GET request method in JS tracker then disable send beacon (#16870)
Diffstat (limited to 'tests/javascript/index.php')
-rw-r--r--tests/javascript/index.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index 2f91e16423..3fd38fa141 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -3269,7 +3269,7 @@ function PiwikTest() {
});
test("POST requests are sent with cookies", function() {
- expect(3);
+ expect(5);
var tracker = Piwik.getTracker();
tracker.setTrackerUrl("matomo.php");
@@ -3283,6 +3283,9 @@ function PiwikTest() {
ok(event.success, 'succeeded');
ok(event.xhr && event.xhr.withCredentials, 'withCredentials is true');
});
+ ok(tracker.isUsingAlwaysUseSendBeacon());
+ tracker.setRequestMethod('GeT');
+ ok(!tracker.isUsingAlwaysUseSendBeacon());
stop();
setTimeout(function() {