special case for when logging jquery nodes -- print the html
This commit is contained in:
parent
dc5b8c026d
commit
6a06d87a4c
@ -28,7 +28,11 @@ module Jasmine
|
||||
<title>Jasmine Test Runner</title>
|
||||
<script type="text/javascript">
|
||||
window.console = { log: function(data) {
|
||||
JHW.log(JSON.stringify(data));
|
||||
if (typeof(jQuery) !== 'undefined' && data instanceof jQuery) {
|
||||
JHW.log($("<div />").append(data).html());
|
||||
} else {
|
||||
JHW.log(JSON.stringify(data));
|
||||
}
|
||||
}, pp: function(data) {
|
||||
JHW.log(jasmine ? jasmine.pp(data) : JSON.stringify(data));
|
||||
} };
|
||||
|
Loading…
Reference in New Issue
Block a user