Sha256: e1d3444061f7d01b7e0bd08b214bfb346924cbfef38731d3094a759ec05dd5b0
Contents?: true
Size: 1.21 KB
Versions: 19
Compression:
Stored size: 1.21 KB
Contents
(function($) { $(Screw) .bind('loaded', function() { $('.describe, .it') .click(function() { document.location = location.href.split('?')[0] + '?' + $(this).fn('selector'); return false; }) .focus(function() { return $(this).addClass('focused'); }) .bind('scroll', function() { document.body.scrollTop = $(this).offset().top; }); $('.it') .bind('enqueued', function() { $(this).addClass('enqueued'); }) .bind('running', function() { $(this).addClass('running'); }) .bind('passed', function() { $(this).addClass('passed'); }) .bind('failed', function(e, reason) { $(this) .addClass('failed') .append($('<p class="error">').text(reason.toString())); if (reason.fileName || reason.lineNumber) { $(this) .append($('<p class="error">').text(reason.fileName + " : " + reason.lineNumber)); } }) }) .bind('before', function() { $('.status').text('Running...'); }) .bind('after', function() { $('.status').fn('display') }) })(jQuery);
Version data entries
19 entries across 17 versions & 2 rubygems