X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=test%2Fphantom%2Fevaluate.js;h=27a2d717799d583c780731e3433cc2540db135df;hb=b36bc57a37bde111fb57e3b1ef184b5ec28e1d93;hp=52e044dfbed7c68aa4ce988575a64f76457d0691;hpb=c40451977ccc4a9759f53aae07bdb1a576b8e2e4;p=mkws-moved-to-github.git diff --git a/test/phantom/evaluate.js b/test/phantom/evaluate.js index 52e044d..27a2d71 100644 --- a/test/phantom/evaluate.js +++ b/test/phantom/evaluate.js @@ -26,7 +26,10 @@ page.viewportSize = { // 0: silent, 1: some infos, 2: display console.log() output var debug = 2; - +if (system.env['DEBUG'] != 'undefined' && parseInt(system.env['DEBUG']) != NaN) { + debug = system.env['DEBUG']; + if (debug > 0) console.log("reset debug level to: " + debug); +} /************************/ @@ -103,6 +106,7 @@ page.open(url, function (status) { function (result) { if (debug < 1) return; + console.log(""); console.log("MKWS tests are successfully done in " + result.time / 1000 + " seconds. Hooray!"); console.log("jasmine duration: " + result.duration); console.log("jasmine passing: " + result.passing);