Sha256: 44feaae2ee20aadd07a108a3672a4daa3f48a66931446dea697dc1f06238fac8

Contents?: true

Size: 1.33 KB

Versions: 11

Compression:

Stored size: 1.33 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"></p>').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);

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
screw_server-0.1.14 assets/vendor/screw-unit/lib/screw.events.js
screw_server-0.1.13 assets/vendor/screw-unit/lib/screw.events.js
screw_server-0.1.12 assets/vendor/screw-unit/lib/screw.events.js
screw_server-0.1.11 assets/vendor/screw-unit/lib/screw.events.js
screw_server-0.1.10 assets/vendor/screw-unit/lib/screw.events.js
screw_server-0.1.9 assets/vendor/screw-unit/lib/screw.events.js
screw_server-0.1.8 assets/vendor/screw-unit/lib/screw.events.js
drogus-blue-ridge-0.0.3 lib/screw.events.js
drogus-blue-ridge-0.0.2 lib/screw.events.js
drogus-blue-ridge-0.0.1 lib/screw.events.js
screw-unit-0.3.3 core/lib/screw.events.js