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/misc
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-05-28 03:10:11 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-05-28 03:10:11 +0400
commitc5ee66efac7bc3cea460f4905a27b6f33212a90f (patch)
treef02932d8b4491834e41a8ee7285bc3da1eef9de0 /misc
parentcb769d35031a6fc516790777ddb544e503d9b7c8 (diff)
fixes #355 - OO version of piwik.js which no longer modifies DOM;
remove misc/testJavascripTracker (interactive tests); add tests/javascript (QUnit unit tests); fixes #661 - use click event instead of mousedown; fixes #549 - define your own download/outlink tracking classes; fixes #82 - add hook interface for module
Diffstat (limited to 'misc')
-rw-r--r--misc/testJavascriptTracker/index.php55
-rw-r--r--misc/testJavascriptTracker/page2.php69
-rw-r--r--misc/testJavascriptTracker/test.jpg0
-rw-r--r--misc/testJavascriptTracker/test.pdf0
-rw-r--r--misc/testJavascriptTracker/test.rar0
-rw-r--r--misc/testJavascriptTracker/test.zip0
6 files changed, 0 insertions, 124 deletions
diff --git a/misc/testJavascriptTracker/index.php b/misc/testJavascriptTracker/index.php
deleted file mode 100644
index 1de9ff8de3..0000000000
--- a/misc/testJavascriptTracker/index.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-require_once '../../core/Url.php';
-$url = Piwik_Url::getCurrentUrlWithoutFileName();
-$urlPiwik = join("/", array_slice(split("/", $url), 0, -3));
-
-?>
-
-<div>
-You should update the piwik javascript code at the bottom of this page if needed.<br />
-And test the tracker by clicking all the links below, with several browsers...<br />
-<br />
-</div>
-
-<a href="mailto:test@test.com"> mailto test@test.com</a> <br />
-<a href="http://www.yahoo.fr"> yahoo france website</a> <br />
-<a href="http://www.yahoo.fr/index?test=test2&p_______=idugiduagi8*&*$&%(*^"> yahoo france website</a> <br />
-<a href="http://www.google.com"> google world website </a> <br />
-<a href="ftp://parcftp.xerox.com"> FTP xerox</a> <br />
-<a href="news://news.eclipse.org"> News::eclipse</a> <br />
-<a href="http://piwik.org"> piwik website </a> <br />
-<a href="http://www.testWithImageAndText.com"><img border=0 src="../../plugins/UserCountry/flags/fr.png"> Test with image + text </a> <br />
-<a href="http://www.testWithImageOnly.com"><img border=0 src="../../plugins/UserCountry/flags/pl.png"></a> <br />
-
-<br />
-<a class="piwik_ignore" href="./THIS_PDF_SHOULD_NOT_BE_COUNTED.pdf"> PDF wthdownload pdf </a> <br />
-<a href="./test.pdf"> download pdf (rel) </a> <br />
-<a href="./dir_test/test.pdf"> download pdf + directory (rel) </a> <br />
-<a href="../testJavascriptTracker/dir_test/test.pdf"> download pdf + parent directory (rel) </a> <br />
-<a href="./test.jpg"> download jpg (rel) </a> <br />
-<a href="./test.zip"> download zip (rel) </a> <br />
-<a href="./test.php?fileToDownload=test.zip"> download strange URL ?file=test.zip</a> <br />
-<a href="
-<?php echo $url; ?>
-test.rar"> download rar (abs) </a> <br />
-<br />
-<a href="./page2.php"> Next (rel)</a> <br />
-<a href="<?php echo $url; ?>page2.php"> Next (abs)</a> <br />
-
-
-
-<!-- Piwik -->
-<a href="http://piwik.org" title="Web analytics" onclick="window.open(this.href);return(false);">
-<script language="javascript" src="<?php echo $urlPiwik; ?>/piwik.js" type="text/javascript"></script>
-<script type="text/javascript">
-<!--
-piwik_action_name = '';
-piwik_idsite = 1;
-piwik_url = '<?php echo $urlPiwik; ?>/piwik.php';
-piwik_log(piwik_action_name, piwik_idsite,piwik_url);
-//-->
-</script><object>
-<noscript><p>Web analytics <img src="<?php echo $urlPiwik; ?>/piwik.php" style="border:0" alt="piwik"/></p>
-</noscript></object></a>
-<!-- /Piwik -->
diff --git a/misc/testJavascriptTracker/page2.php b/misc/testJavascriptTracker/page2.php
deleted file mode 100644
index cf53d38d11..0000000000
--- a/misc/testJavascriptTracker/page2.php
+++ /dev/null
@@ -1,69 +0,0 @@
-<?php
-
-require_once '../../core/Url.php';
-$url = Piwik_Url::getCurrentUrlWithoutFileName();
-$urlPiwik = join("/", array_slice(split("/", $url), 0, -3));
-?>
-
-<div>
-You should update the piwik javascript code at the bottom of this page if needed.<br />
-And test the tracker by clicking all the links below, with several browsers...<br />
-<br />
-</div>
-
-<script type="text/javascript">
-<!--
-piwik_ignore_classes = ["no-tracking"];
-//-->
-</script>
-<h1>Ignore classes</h1>
-<a href="http://www.yahoo.com">Expecting a yahoo.com outlink</a> <br />
-<a href="http://piwik.org" class="piwik_ignore">Ignore this piwik.org outlink</a> <br />
-<a href="http://dev.piwik.org" class="no-tracking">Ignore this dev.piwik.org outlink</a> <br />
-
-<script type="text/javascript">
-<!--
-piwik_download_extensions = ".zip";
-//-->
-</script>
-<style type="text/css">
-a.boldlink {font-weight: bold}
-</style>
-<h1>Multiple classes</h1>
-<a href="./test.pdf" class="piwik_download">Track this download pdf (rel) </a> <br />
-<a href="./test.jpg" class="boldlink piwik_download">Track this download jpg (rel) </a> <br />
-<a href="./test.zip" class="boldlink no-tracking">Ignore this download zip (rel) </a> <br />
-
-<a href="./index.php"> Prev (rel)</a> <br />
-<a href="<?php echo $url; ?>index.php"> Prev (abs)</a> <br />
-
-<!-- Piwik -->
-<a href="http://piwik.org" title="Web analytics" onclick="window.open(this.href);return(false);">
-<script language="javascript" src="<?php echo $urlPiwik; ?>/piwik.js" type="text/javascript"></script>
-<script type="text/javascript">
-<!--
-piwik_action_name = '';
-piwik_idsite = 1;
-piwik_url = '<?php echo $urlPiwik; ?>/piwik.php';
-piwik_log(piwik_action_name, piwik_idsite,piwik_url);
-//-->
-</script><object>
-<noscript><p>Web analytics <img src="<?php echo $urlPiwik; ?>/piwik.php" style="border:0" alt="piwik"/></p>
-</noscript></object></a>
-<!-- /Piwik -->
-
-<script type="text/javascript">
-
-var testPkIsSiteHostname = false;
-if(testPkIsSiteHostname) {
- // automated testing
- _pk_hosts_alias = ["*.example.com"];
-
- if (_pk_is_site_hostname("localhost")) alert("failed: localhost does not match");
- if (_pk_is_site_hostname("google.com")) alert("failed: google.com does not match");
- if (!_pk_is_site_hostname("example.com")) alert("failed: example.com does match");
- if (!_pk_is_site_hostname("www.example.com")) alert("failed: www.example.com does match");
- if (!_pk_is_site_hostname("www.sub.example.com")) alert("failed: www.sub.example.com does match");
-}
-</script>
-
diff --git a/misc/testJavascriptTracker/test.jpg b/misc/testJavascriptTracker/test.jpg
deleted file mode 100644
index e69de29bb2..0000000000
--- a/misc/testJavascriptTracker/test.jpg
+++ /dev/null
diff --git a/misc/testJavascriptTracker/test.pdf b/misc/testJavascriptTracker/test.pdf
deleted file mode 100644
index e69de29bb2..0000000000
--- a/misc/testJavascriptTracker/test.pdf
+++ /dev/null
diff --git a/misc/testJavascriptTracker/test.rar b/misc/testJavascriptTracker/test.rar
deleted file mode 100644
index e69de29bb2..0000000000
--- a/misc/testJavascriptTracker/test.rar
+++ /dev/null
diff --git a/misc/testJavascriptTracker/test.zip b/misc/testJavascriptTracker/test.zip
deleted file mode 100644
index e69de29bb2..0000000000
--- a/misc/testJavascriptTracker/test.zip
+++ /dev/null