X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=test%2Fphantom%2Fevaluate.js;h=b84c0c20f5c7f876374baf306751dda52f66d271;hb=defd59744d1d0569395de8d4a8c8943dcfd1bff8;hp=309b9a8b6c181bbcf119e95e79b160e6e013ff15;hpb=af744f72a162d46f45cb42bfec3e9028c3aa206d;p=mkws-moved-to-github.git diff --git a/test/phantom/evaluate.js b/test/phantom/evaluate.js index 309b9a8..b84c0c2 100644 --- a/test/phantom/evaluate.js +++ b/test/phantom/evaluate.js @@ -90,6 +90,7 @@ page.open(url, function (status) { 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); + console.log("mkws: " + result.mkws_js); }, function (result) { @@ -101,8 +102,9 @@ page.open(url, function (status) { page.render(error_png); console.log("keep html DOM in '" + error_html + "'"); + var html = result.html + "\n\n\n"; var fs = require('fs'); - fs.write(error_html, result.html ? result.html : "Argh!", "wb"); + fs.write(error_html, html, "wb"); }, run_time * 1000); });