core/lib/screw.events.js in screw-unit-0.3.3 vs core/lib/screw.events.js in screw-unit-0.5.1
- old
+ new
@@ -24,22 +24,22 @@
$(this).addClass('passed');
})
.bind('failed', function(e, reason) {
$(this)
.addClass('failed')
- .append($('<p class="error"></p>').text(reason.toString()));
+ .append($('<p class="error">').text(reason.toString()));
var file = reason.fileName || reason.sourceURL;
var line = reason.lineNumber || reason.line;
if (file || line) {
$(this).append($('<p class="error"></p>').text('line ' + line + ', ' + file));
}
- })
+ });
})
.bind('before', function() {
Screw.suite_start_time = new Date();
$('.status').text('Running...');
})
.bind('after', function() {
- $('.status').fn('display')
- })
-})(jQuery);
\ No newline at end of file
+ $('body .status').fn('display');
+ });
+})(jQuery);