Sha256: 6d05c040d1cf70ef74a58f0c85148e9fbfc72eb7d62ca417bddb3c551b9f4a0f
Contents?: true
Size: 1.16 KB
Versions: 5
Compression:
Stored size: 1.16 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) { reasonText = "<p>" + reason.toString() + "</p>"; if(reason.stack) reasonText += ("<pre>" + reason.stack + "</pre>"); $(this) .addClass('failed') .append($('<p class="error">').html(reasonText)); }) }) .bind('before', function() { $('.status').text('Running...'); }) .bind('after', function() { $('.status').fn('display') }) })(jQuery);
Version data entries
5 entries across 5 versions & 1 rubygems