spec/dummy/tmp/cache/assets/D00/F60/sprockets%2F42e279b52511c47d26c0adb125fd04e8 in teabag-0.4.2 vs spec/dummy/tmp/cache/assets/D00/F60/sprockets%2F42e279b52511c47d26c0adb125fd04e8 in teabag-0.4.3
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356561524.1354508:@value"Kp{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1356736275.235111:@value"G„{I"
class:EFI"BundledAsset; FI"logical_path; FI"teabag/qunit.js; FI"
pathname; FI"P/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag/qunit.coffee; FI"content_type; FI"application/javascript; FI"
-mtime; FI"2012-12-26T15:35:43-07:00; FI"length; FiynI"digest; F"%741a40adcf59a353adf1261fb48d931dI"source; FI"yn/**
+mtime; FI"2012-12-28T16:06:57-07:00; FI"length; Fiu‚I"digest; F"%614034191c756e57aff610f8360868ccI"source; FI"u‚/**
* QUnit v1.10.0 - A JavaScript Unit Testing Framework
*
* http://qunitjs.com
*
* Copyright 2012 jQuery Foundation and other contributors
@@ -2074,11 +2074,191 @@
})();
}).call(this);
(function() {
+ var __slice = [].slice;
+ Teabag.fixture = (function() {
+ var addContent, cleanup, create, load, loadComplete, preload, putContent, set, xhr, xhrRequest,
+ _this = this;
+
+ fixture.cache = {};
+
+ fixture.el = null;
+
+ fixture.json = [];
+
+ fixture.preload = function() {
+ var url, urls, _i, _len, _results;
+ urls = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
+ _results = [];
+ for (_i = 0, _len = urls.length; _i < _len; _i++) {
+ url = urls[_i];
+ _results.push(preload(url));
+ }
+ return _results;
+ };
+
+ fixture.load = function() {
+ var append, index, url, urls, _i, _j, _len, _results;
+ urls = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), append = arguments[_i++];
+ if (append == null) {
+ append = false;
+ }
+ if (typeof append !== "boolean") {
+ urls.push(append);
+ append = false;
+ }
+ _results = [];
+ for (index = _j = 0, _len = urls.length; _j < _len; index = ++_j) {
+ url = urls[index];
+ _results.push(load(url, append || index > 0));
+ }
+ return _results;
+ };
+
+ fixture.set = function() {
+ var append, html, htmls, index, _i, _j, _len, _results;
+ htmls = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), append = arguments[_i++];
+ if (append == null) {
+ append = false;
+ }
+ if (typeof append !== "boolean") {
+ htmls.push(append);
+ append = false;
+ }
+ _results = [];
+ for (index = _j = 0, _len = htmls.length; _j < _len; index = ++_j) {
+ html = htmls[index];
+ _results.push(set(html, append || index > 0));
+ }
+ return _results;
+ };
+
+ fixture.cleanup = function() {
+ return cleanup();
+ };
+
+ function fixture() {
+ Teabag.fixture.load.apply(window, arguments);
+ }
+
+ xhr = null;
+
+ preload = function(url) {
+ return load(url, false, true);
+ };
+
+ load = function(url, append, preload) {
+ var cached, value;
+ if (preload == null) {
+ preload = false;
+ }
+ if (cached = Teabag.fixture.cache[url]) {
+ return loadComplete(url, cached.type, cached.content, append, preload);
+ }
+ value = null;
+ xhrRequest(url, function() {
+ if (xhr.readyState !== 4) {
+ return;
+ }
+ if (xhr.status !== 200) {
+ throw "Unable to load fixture \"" + url + "\".";
+ }
+ return value = loadComplete(url, xhr.getResponseHeader("content-type"), xhr.responseText, append, preload);
+ });
+ return value;
+ };
+
+ loadComplete = function(url, type, content, append, preload) {
+ Teabag.fixture.cache[url] = {
+ type: type,
+ content: content
+ };
+ if (type.match(/application\/json;/)) {
+ return fixture.json[fixture.json.push(JSON.parse(content)) - 1];
+ }
+ if (preload) {
+ return content;
+ }
+ if (append) {
+ addContent(content);
+ } else {
+ putContent(content);
+ }
+ return Teabag.fixture.el;
+ };
+
+ set = function(content, append) {
+ if (append) {
+ return addContent(content);
+ } else {
+ return putContent(content);
+ }
+ };
+
+ putContent = function(content) {
+ cleanup();
+ create();
+ return Teabag.fixture.el.innerHTML = content;
+ };
+
+ addContent = function(content) {
+ if (!Teabag.fixture.el) {
+ create();
+ }
+ return Teabag.fixture.el.innerHTML += content;
+ };
+
+ create = function() {
+ var _ref;
+ Teabag.fixture.el = document.createElement("div");
+ Teabag.fixture.el.id = "teabag-fixtures";
+ return (_ref = document.body) != null ? _ref.appendChild(Teabag.fixture.el) : void 0;
+ };
+
+ cleanup = function() {
+ var _base, _ref, _ref1;
+ (_base = Teabag.fixture).el || (_base.el = document.getElementById("teabag-fixtures"));
+ if ((_ref = Teabag.fixture.el) != null) {
+ if ((_ref1 = _ref.parentNode) != null) {
+ _ref1.removeChild(Teabag.fixture.el);
+ }
+ }
+ return Teabag.fixture.el = null;
+ };
+
+ xhrRequest = function(url, callback) {
+ if (window.XMLHttpRequest) {
+ xhr = new XMLHttpRequest();
+ } else if (window.ActiveXObject) {
+ try {
+ xhr = new ActiveXObject("Msxml2.XMLHTTP");
+ } catch (e) {
+ try {
+ xhr = new ActiveXObject("Microsoft.XMLHTTP");
+ } catch (e) {
+
+ }
+ }
+ }
+ if (!xhr) {
+ throw "Unable to make Ajax Request";
+ }
+ xhr.onreadystatechange = callback;
+ xhr.open("GET", "" + Teabag.root + "/fixtures/" + url, false);
+ return xhr.send();
+ };
+
+ return fixture;
+
+ }).call(this);
+
+}).call(this);
+(function() {
+
Teabag.Reporters.BaseView = (function() {
function BaseView() {
this.elements = {};
this.build();
@@ -2941,24 +3121,18 @@
})(Teabag.Reporters.HTML.SuiteView);
}).call(this);
(function() {
- var __hasProp = {}.hasOwnProperty,
+ var env, originalReset,
+ __hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
Teabag.Runner = (function(_super) {
- var env;
__extends(Runner, _super);
- env = QUnit;
-
- env.config.autostart = false;
-
- env.config.altertitle = false;
-
function Runner() {
Runner.__super__.constructor.apply(this, arguments);
env.start();
}
@@ -2976,11 +3150,11 @@
function Spec(spec) {
this.spec = spec;
this.fullDescription = "" + this.spec.module + " " + this.spec.name;
this.description = "" + this.spec.name + " (" + this.spec.failed + ", " + this.spec.passed + ", " + this.spec.total + ")";
- this.link = "?grep=" + (encodeURIComponent(this.fullDescription));
+ this.link = "?grep=" + (encodeURIComponent("" + this.spec.module + ": " + this.spec.name));
this.parent = this.spec.module ? new Teabag.Suite({
description: this.spec.module
}) : null;
this.suiteName = this.spec.module;
this.viewId = this.spec.viewId;
@@ -3042,7 +3216,24 @@
return Suite;
})();
+ env = QUnit;
+
+ env.config.autostart = false;
+
+ env.config.altertitle = false;
+
+ env.config.filter = Teabag.Runner.prototype.getParams()["grep"];
+
+ window.fixture = Teabag.fixture;
+
+ originalReset = env.reset;
+
+ env.reset = function() {
+ originalReset();
+ return Teabag.fixture.cleanup();
+ };
+
}).call(this);
-; TI"required_assets_digest; F"%eb6c911db303309fb1ef5644f72efb0bI"
_version; F"%6776f581a4329e299531e1d52aa59832
+; TI"required_assets_digest; F"%01f90805916674c3ad5bb7529d79f195I"
_version; F"%6776f581a4329e299531e1d52aa59832
\ No newline at end of file