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@googlemail.com>2014-09-13 17:04:24 +0400
committerThomas Steur <thomas.steur@googlemail.com>2014-09-13 17:04:24 +0400
commit92e2aa09d8c787d463b38fb404fd0da75dddc0b6 (patch)
tree66c330cd10164d52e03228b91ecf777e20ea1103 /tests/javascript
parent5e405cc1aabdc4f0b4984f380f9f628383595f92 (diff)
refs #4996 do log successful ran tests so we can locate not working ones better if they have same message
Diffstat (limited to 'tests/javascript')
-rw-r--r--tests/javascript/testrunner.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/javascript/testrunner.js b/tests/javascript/testrunner.js
index 5b333a8a29..ff74ceb28b 100644
--- a/tests/javascript/testrunner.js
+++ b/tests/javascript/testrunner.js
@@ -25,7 +25,7 @@ var fs = require("fs");
var url = 'http://localhost/tests/javascript/';
function printError(message) {
- fs.write("/dev/stderr", message + "\n", "w");
+ console.error(message + "\n");
}
var page = require("webpage").create();
@@ -64,6 +64,10 @@ page.onResourceReceived = function() {
errorMessage += " \nSource: " + obj.source + "\n\n";
console.log(errorMessage);
+ } else {
+ if (obj && obj.message) {
+ console.log(obj.message);
+ }
}
});
});