diff options
author | mattab <matthieu.aubry@gmail.com> | 2014-04-04 07:42:09 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2014-04-04 07:42:09 +0400 |
commit | e23e284467dd720d45264f176072d00d0971ede9 (patch) | |
tree | d50692501e574a5b02866f6a0ff876a450438db8 /tests | |
parent | 9cc59e84a1819a79a079232ac857ed66db00abdd (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.php | 3 |
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' ); |