Sha256: 9ef9834ab7dbbc86fafc15461415bb1665334eb00fea80ab76c5657811b7ff6f

Contents?: true

Size: 464 Bytes

Versions: 24

Compression:

Stored size: 464 Bytes

Contents

(function($) {
  var ajax = $.ajax;
  $(Screw).bind('after', function() {
    var error_text = $(".error").map(function(i, element) {
      return element.innerHTML;
    }).get().join("\n");

    var suite_id;
    if(top.runOptions) {
      suite_id = top.runOptions.getSessionId();
    } else {
      suite_id = 'user';
    }

    ajax({
      type: "POST",
      url: '/suites/' + suite_id + '/finish',
      data: {"text": error_text}
    });
  });
})(jQuery);

Version data entries

24 entries across 22 versions & 6 rubygems

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