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>2015-10-02 12:02:57 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-10-02 12:02:57 +0300
commitcc557da049775209db4b09b29281cfff9070a110 (patch)
tree477d056ce34dba76f4d18888976323a679d4758a /tests/javascript
parent0839f2e5e10dfb9908491f6bbf5bb3eaf9bb49b2 (diff)
do not use eval in minified piwik.js, replace JSON2 with JSON3
Diffstat (limited to 'tests/javascript')
-rw-r--r--tests/javascript/index.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index 2664cb9239..702233d622 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -439,10 +439,14 @@ function PiwikTest() {
var src = '<?php
$src = file_get_contents('../../js/piwik.js');
$src = strtr($src, array('\\'=>'\\\\',"'"=>"\\'",'"'=>'\\"',"\r"=>'\\r',"\n"=>'\\n','</'=>'<\/'));
+ $src = substr($src, strpos($src, '/* startjslint */'));
echo "$src"; ?>';
var result = JSLINT(src);
ok( result, "JSLint" );
+ if (console && console.log && !result) {
+ console.log('JSLINT errors', JSLINT.errors);
+ }
// alert(JSLINT.report(true));
});