spec/dummy/tmp/cache/assets/D6A/950/sprockets%2F429b1806cb7580ebf29f9a12c33cbea6 in teabag-0.5.5 vs spec/dummy/tmp/cache/assets/D6A/950/sprockets%2F429b1806cb7580ebf29f9a12c33cbea6 in teabag-0.6.0
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360694352.435776:@value",«{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1361302422.3004942:@value"Ÿ«{I"
class:EFI"BundledAsset; FI"logical_path; FI"teabag-jasmine.js; FI"
pathname; FI"N/Users/jejacks0n/Projects/teabag/app/assets/javascripts/teabag-jasmine.js; FI"content_type; FI"application/javascript; FI"
-mtime; FI"2013-02-12T11:05:52-07:00; FI"length; FiZ©I"digest; F"%d1ca86033c1dc0a89a4831f8f2e107c6I"source; FI"Z©var isCommonJS = typeof window == "undefined" && typeof exports == "object";
+mtime; FI"2013-02-19T12:10:13-07:00; FI"length; FiͩI"digest; F"%fbcca57e3f1f3b595786612ef8bffa8aI"source; FI"ͩvar isCommonJS = typeof window == "undefined" && typeof exports == "object";
/**
* Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
*
* @namespace
@@ -2622,12 +2622,10 @@
Teabag.Date = Date;
Teabag.location = window.location;
- Teabag.console = window.console;
-
Teabag.messages = [];
Teabag.execute = function() {
if (this.defer) {
this.defer = false;
@@ -2641,11 +2639,11 @@
var dep, deps, file, parts, path, paths, _i, _j, _len, _len1;
if (all == null) {
all = [];
}
deps = [];
- if ((paths = window.location.search.match(/[\?&]file(\[\])?=[^&\?]*/gi)) === null) {
+ if ((paths = this.location.search.match(/[\?&]file(\[\])?=[^&\?]*/gi)) === null) {
return all;
}
for (_i = 0, _len = paths.length; _i < _len; _i++) {
path = paths[_i];
parts = decodeURIComponent(path.replace(/\+/g, " ")).match(/\/(.+)\.(js|js.coffee|coffee)$/i);
@@ -2662,13 +2660,16 @@
}
return deps;
};
Teabag.log = function() {
- var _ref;
this.messages.push(arguments[0]);
- return (_ref = this.console).log.apply(_ref, arguments);
+ try {
+ return console.log.apply(console, arguments);
+ } catch (e) {
+ throw new Error("Unable to use console.log for logging");
+ }
};
Teabag.getMessages = function() {
var messages;
messages = this.messages;
@@ -3035,12 +3036,13 @@
};
HTML.prototype.buildLayout = function() {
var el;
el = this.createEl("div");
- document.body.appendChild(el);
- return el.innerHTML = Teabag.Reporters.HTML.template;
+ el.id = "teabag-interface";
+ el.innerHTML = Teabag.Reporters.HTML.template;
+ return document.body.appendChild(el);
};
HTML.prototype.buildSuiteSelect = function() {
var options, suite, _i, _len, _ref;
if (Teabag.suites.all.length === 1) {
@@ -3066,11 +3068,11 @@
}
return this.setHtml("filter-list", "<li>" + (this.filters.join("</li><li>")), true);
};
HTML.prototype.reportRunnerStarting = function(runner) {
- this.total.exist = runner.total || runner.specs().length;
+ this.total.exist = runner.total || (typeof runner.specs === "function" ? runner.specs().length : void 0) || 0;
if (this.total.exist) {
return this.setText("stats-duration", "...");
}
};
@@ -3501,11 +3503,11 @@
})(Teabag.Reporters.BaseView);
}).call(this);
(function() {
- Teabag.Reporters.HTML.template = "<div id=\"teabag-interface\">\n <div class=\"teabag-clearfix\">\n <div id=\"teabag-title\">\n <h1>Teabag</h1>\n <ul>\n <li>version: <b id=\"teabag-version\"></b></li>\n <li id=\"teabag-env-info\"></li>\n </ul>\n </div>\n <div id=\"teabag-progress\"></div>\n <ul id=\"teabag-stats\">\n <li>passes: <b id=\"teabag-stats-passes\">0</b></li>\n <li>failures: <b id=\"teabag-stats-failures\">0</b></li>\n <li>skipped: <b id=\"teabag-stats-skipped\">0</b></li>\n <li>duration: <b id=\"teabag-stats-duration\">∞</b></li>\n </ul>\n </div>\n\n <div id=\"teabag-controls\" class=\"teabag-clearfix\">\n <div id=\"teabag-toggles\">\n <button id=\"teabag-use-catch\" title=\"Toggle using try/catch wrappers when possible\">Try/Catch</button>\n <button id=\"teabag-build-full-report\" title=\"Toggle building the full report\">Full Report</button>\n <button id=\"teabag-display-progress\" title=\"Toggle displaying progress as tests run\">Progress</button>\n </div>\n <div id=\"teabag-suites\"></div>\n </div>\n\n <hr/>\n\n <div id=\"teabag-filter\">\n <h1>Filtering</h1>\n <ul id=\"teabag-filter-list\"></ul>\n </div>\n\n <div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n </div>\n</div>";
+ Teabag.Reporters.HTML.template = "<div class=\"teabag-clearfix\">\n <div id=\"teabag-title\">\n <h1>Teabag</h1>\n <ul>\n <li>version: <b id=\"teabag-version\"></b></li>\n <li id=\"teabag-env-info\"></li>\n </ul>\n </div>\n <div id=\"teabag-progress\"></div>\n <ul id=\"teabag-stats\">\n <li>passes: <b id=\"teabag-stats-passes\">0</b></li>\n <li>failures: <b id=\"teabag-stats-failures\">0</b></li>\n <li>skipped: <b id=\"teabag-stats-skipped\">0</b></li>\n <li>duration: <b id=\"teabag-stats-duration\">∞</b></li>\n </ul>\n</div>\n\n<div id=\"teabag-controls\" class=\"teabag-clearfix\">\n <div id=\"teabag-toggles\">\n <button id=\"teabag-use-catch\" title=\"Toggle using try/catch wrappers when possible\">Try/Catch</button>\n <button id=\"teabag-build-full-report\" title=\"Toggle building the full report\">Full Report</button>\n <button id=\"teabag-display-progress\" title=\"Toggle displaying progress as tests run\">Progress</button>\n </div>\n <div id=\"teabag-suites\"></div>\n</div>\n\n<hr/>\n\n<div id=\"teabag-filter\">\n <h1>Filtering</h1>\n <ul id=\"teabag-filter-list\"></ul>\n</div>\n\n<div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n</div>";
}).call(this);
(function() {
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
@@ -3518,11 +3520,11 @@
}
Console.prototype.reportRunnerStarting = function(runner) {
return this.log({
type: "runner",
- total: runner.total || runner.specs().length,
+ total: runner.total || (typeof runner.specs === "function" ? runner.specs().length : void 0) || 0,
start: JSON.parse(JSON.stringify(this.start))
});
};
Console.prototype.reportSuites = function() {
@@ -3602,11 +3604,12 @@
};
Console.prototype.reportRunnerResults = function() {
this.log({
type: "result",
- elapsed: ((new Teabag.Date().getTime() - this.start.getTime()) / 1000).toFixed(5)
+ elapsed: ((new Teabag.Date().getTime() - this.start.getTime()) / 1000).toFixed(5),
+ coverage: window.__coverage__
});
return Teabag.finished = true;
};
Console.prototype.log = function(obj) {
@@ -3836,6 +3839,6 @@
})(Teabag.fixture);
env = jasmine.getEnv();
}).call(this);
-; FI"required_assets_digest; F"%23690ddcf57049e3ec07879bd4eb1758I"
_version; F"%ffd318ca8b794f42f5029101c2cf5d91
+; FI"required_assets_digest; F"%97981e4dedd919beaf49fbd2de39377bI"
_version; F"%ffd318ca8b794f42f5029101c2cf5d91
\ No newline at end of file