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

Version Path
xmvc-0.1.12 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.11 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.10 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.9 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.8 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.7 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.6 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.5 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.4 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
extjs-mvc-0.4.0.e lib/vendor/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.3 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.2 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
extjs-mvc-0.4.0.d lib/vendor/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.1 lib/xmvc/generators/templates/app/public/vendor/screw-unit/lib/screw.events.js
xmvc-0.1.0 lib/xmvc/generators/templates/app/vendor/screw-unit/lib/screw.events.js
extjs-mvc-0.4.0.b lib/extjs-mvc/generators/templates/app/vendor/screw-unit/lib/screw.events.js
extjs-mvc-0.4.0.b lib/js/vendor/screw-unit/lib/screw.events.js
extjs-mvc-0.4.0.a lib/js/vendor/screw-unit/lib/screw.events.js
extjs-mvc-0.4.0.a lib/extjs-mvc/generators/templates/app/vendor/screw-unit/lib/screw.events.js