provide both console.log and console.pp

This commit is contained in:
John Bintz 2011-06-08 09:27:54 -04:00
parent 1d4d5f397a
commit 2b5eaa7990

View File

@ -37,11 +37,9 @@ module Jasmine
<title>Jasmine Test Runner</title>
<script type="text/javascript">
window.console = { log: function(data) {
if (jasmine) {
JHW.log(jasmine.pp(data))
} else {
JHW.log(JSON.stringify(data));
}
}, pp: function(data) {
JHW.log(jasmine ? jasmine.pp(data) : JSON.stringify(data));
} };
</script>
#{files.join("\n")}