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 <thomas.steur@gmail.com>2017-02-03 06:55:27 +0300
committerThomas Steur <thomas.steur@gmail.com>2017-02-03 06:55:27 +0300
commit51b4e10e2d0a2c630ac7c6fea0b65f02438e4f73 (patch)
treef37c117c4f5bfc40fa93ef5611b0411d043188ef /tests/javascript/index.php
parentc34a94218fcf101c69833835c30994f1c5241176 (diff)
added getlinktrackingtimeout
Diffstat (limited to 'tests/javascript/index.php')
-rw-r--r--tests/javascript/index.php14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index 09480cafae..2a890d3b0b 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -2102,7 +2102,7 @@ function PiwikTest() {
});
test("API methods", function() {
- expect(75);
+ expect(76);
equal( typeof Piwik.addPlugin, 'function', 'addPlugin' );
equal( typeof Piwik.addPlugin, 'function', 'addTracker' );
@@ -2139,6 +2139,7 @@ function PiwikTest() {
equal( typeof tracker.getCustomVariable, 'function', 'getCustomVariable' );
equal( typeof tracker.deleteCustomVariable, 'function', 'deleteCustomVariable' );
equal( typeof tracker.setLinkTrackingTimer, 'function', 'setLinkTrackingTimer' );
+ equal( typeof tracker.getLinkTrackingTimer, 'function', 'getLinkTrackingTimer' );
equal( typeof tracker.setDownloadExtensions, 'function', 'setDownloadExtensions' );
equal( typeof tracker.addDownloadExtensions, 'function', 'addDownloadExtensions' );
equal( typeof tracker.removeDownloadExtensions, 'function', 'removeDownloadExtensions' );
@@ -2977,6 +2978,17 @@ function PiwikTest() {
});
+ test("Tracker getLinkTrackingTimer() setLinkTrackingTimer", function() {
+ expect(2);
+
+ var tracker = Piwik.getTracker();
+
+ equal(500, tracker.getLinkTrackingTimer(), 'getLinkTrackingTimer, default is 500');
+ tracker.setLinkTrackingTimer(1091);
+ equal(1091, tracker.getLinkTrackingTimer(), 'setLinkTrackingTimer, changed value');
+ tracker.setLinkTrackingTimer(500);
+ });
+
test("Tracker setDownloadExtensions(), addDownloadExtensions(), setDownloadClasses(), setLinkClasses(), and getLinkType()", function() {
expect(72);