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:
authordizzy <diosmosis@users.noreply.github.com>2021-06-18 10:14:35 +0300
committerGitHub <noreply@github.com>2021-06-18 10:14:35 +0300
commit482cf02b00876f799516036cef52c061136a0954 (patch)
treeb55cc1644958685c4e9dfe3994bc17d05957d7f4 /tests/javascript/index.php
parent3af87103094fc48699fa656ac6795ec56f5775d2 (diff)
fix regression in trackingspamprevention and warning in bound parameter checking code (#17683)
* remove testdox * fix warning if parameters is a single value, not an array * allow skipping valid host check for hardcoded URLs we know are valid * print testdox hint in case build takes too long to finish consistently * move testdox warning to correct boostrap file * fixing some tests + fix use of Date in bind params
Diffstat (limited to 'tests/javascript/index.php')
-rw-r--r--tests/javascript/index.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/javascript/index.php b/tests/javascript/index.php
index ddec6a81e7..098809656f 100644
--- a/tests/javascript/index.php
+++ b/tests/javascript/index.php
@@ -22,7 +22,9 @@ if (!empty($_GET['plugin'])
}
try {
+ @ob_start();
$mysql = include_once $root . "/tests/PHPUnit/bootstrap.php";
+ @ob_end_clean();
} catch (Exception $e) {
echo 'alert("ERROR, not all tests are running! --> ' . $e->getMessage() . '")';
$mysql = false;
@@ -1012,6 +1014,7 @@ function PiwikTest() {
strictEqual(actual, _e('firstLink'), "findFirstNodeHavingAttributeWithValue, should find first link within body");
actual = query.findFirstNodeHavingAttributeWithValue(document.body, 'src');
+
strictEqual(actual, _e('image2'), "findFirstNodeHavingAttributeWithValue, should not return first image which has empty src attribute");