- var runTime = new Date() - startTime;
- var result = document.createElement("div");
- result.innerHTML = ['<p class="result">Tests completed in ',
- runTime, ' milliseconds.<br/>',
- stats.bad, ' tests of ', stats.all, ' failed.</p>'].join('');
- document.getElementsByTagName("body")[0].appendChild(result);
- $("<div id='banner'>").addClass(stats.bad ? "fail" : "pass").insertAfter("h1");
+ time = new Date() - time;
+ $("<div>").html(['<p class="result">Tests completed in ',
+ time, ' milliseconds.<br/>',
+ _config.stats.bad, ' tests of ', _config.stats.all, ' failed.</p>']
+ .join(''))
+ .appendTo("body");
+ $("#banner").addClass(_config.stats.bad ? "fail" : "pass");