summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-09-30 22:42:00 +0300
committerAlon Levy <alon@pobox.com>2014-10-02 10:04:06 +0300
commitffb0cfbd4e48bee1395488a0099779c3256e0f9d (patch)
tree112c04038bcec352c45a42d368afc1e183afaad1
parentdda3212eeb21b0057fba9c395a16c1ac5b1a71be (diff)
tests: get meaningful console.log in loaded scripts
-rw-r--r--tests/test_history.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_history.js b/tests/test_history.js
index 1457f3d1..0851d9aa 100644
--- a/tests/test_history.js
+++ b/tests/test_history.js
@@ -33,6 +33,9 @@ var env = jsdom.env({
scripts: script_filenames,
//url: "http://localhost:12345/",
html: "<html><body></body></html>",
+ created: function(errors, window) {
+ window.console.log = console.log;
+ },
done: function (errors, window) {
console.log('---------');
console.log(errors);