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
path: root/tests
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-04-04 07:42:09 +0400
committermattab <matthieu.aubry@gmail.com>2014-04-04 07:42:09 +0400
commite23e284467dd720d45264f176072d00d0971ede9 (patch)
treed50692501e574a5b02866f6a0ff876a450438db8 /tests
parent9cc59e84a1819a79a079232ac857ed66db00abdd (diff)
Adding test whether a pdf download with a dash in the name is tracked as pdf download. it works.
http://forum.piwik.org/read.php?2,113567
Diffstat (limited to 'tests')
-rw-r--r--tests/javascript/index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index ff7a860cc4..0cedfe1117 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -668,7 +668,7 @@ function PiwikTest() {
});
test("Tracker setDownloadExtensions(), addDownloadExtensions(), setDownloadClasses(), setLinkClasses(), and getLinkType()", function() {
- expect(24);
+ expect(25);
var tracker = Piwik.getTracker();
@@ -677,6 +677,7 @@ function PiwikTest() {
equal( tracker.hook.test._getLinkType('something', 'goofy.html', false), 'link', 'implicit link' );
equal( tracker.hook.test._getLinkType('something', 'goofy.pdf', false), 'download', 'external PDF files are downloads' );
equal( tracker.hook.test._getLinkType('something', 'goofy.pdf', true), 'download', 'local PDF are downloads' );
+ equal( tracker.hook.test._getLinkType('something', 'goofy-with-dash.pdf', true), 'download', 'local PDF are downloads' );
equal( tracker.hook.test._getLinkType('piwik_download', 'piwiktest.ext', true), 'download', 'piwik_download' );
equal( tracker.hook.test._getLinkType('abc piwik_download xyz', 'piwiktest.ext', true), 'download', 'abc piwik_download xyz' );