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> <title>Jasmine Test Runner</title>
<script type="text/javascript"> <script type="text/javascript">
window.console = { log: function(data) { window.console = { log: function(data) {
if (jasmine) { JHW.log(JSON.stringify(data));
JHW.log(jasmine.pp(data)) }, pp: function(data) {
} else { JHW.log(jasmine ? jasmine.pp(data) : JSON.stringify(data));
JHW.log(JSON.stringify(data));
}
} }; } };
</script> </script>
#{files.join("\n")} #{files.join("\n")}