spec/dummy/tmp/cache/assets/D6A/950/sprockets%2F429b1806cb7580ebf29f9a12c33cbea6 in teabag-0.5.1 vs spec/dummy/tmp/cache/assets/D6A/950/sprockets%2F429b1806cb7580ebf29f9a12c33cbea6 in teabag-0.5.2
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357875090.609102:@value" ¦{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1357970057.5243251:@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-01-08T23:50:07-07:00; FI"length; Fi.¤I"digest; F"%3889b9b99397f2619655b04a149f2338I"source; FI".¤var isCommonJS = typeof window == "undefined" && typeof exports == "object";
+mtime; FI"2013-01-11T22:27:25-07:00; FI"length; Fi&¦I"digest; F"%58bde04ff81ce68c3da47cd160e90e0bI"source; FI"&¦var isCommonJS = typeof window == "undefined" && typeof exports == "object";
/**
* Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework.
*
* @namespace
@@ -2665,11 +2665,11 @@
if (this.constructor.run) {
return;
}
this.constructor.run = true;
this.fixturePath = "" + Teabag.root + "/fixtures";
- this.params = this.getParams();
+ this.params = Teabag.params = this.getParams();
this.setup();
}
Runner.prototype.getParams = function() {
var name, param, params, value, _i, _len, _ref, _ref1;
@@ -2984,34 +2984,37 @@
};
this.views = {
specs: {},
suites: {}
};
- this.filter = false;
+ this.filters = [];
+ this.setFilters();
this.readConfig();
HTML.__super__.constructor.apply(this, arguments);
}
HTML.prototype.build = function() {
var _ref;
this.buildLayout();
- this.el = this.findEl("report-all");
this.setText("env-info", this.envInfo());
this.setText("version", Teabag.version);
this.findEl("toggles").onclick = this.toggleConfig;
+ this.findEl("suites").innerHTML = this.buildSuiteSelect();
if ((_ref = this.findEl("suite-select")) != null) {
_ref.onchange = this.changeSuite;
}
+ this.el = this.findEl("report-all");
this.showConfiguration();
- return this.buildProgress();
+ this.buildProgress();
+ return this.buildFilters();
};
HTML.prototype.buildLayout = function() {
var el;
el = this.createEl("div");
document.body.appendChild(el);
- return el.innerHTML = "<div id=\"teabag-html-reporter\">\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-filter\">\n " + (this.buildSuiteSelect()) + "\n <button onclick=\"window.location.href = window.location.pathname\">Run All</button>\n <span id=\"teabag-filter-info\">\n </div>\n </div>\n\n <hr/>\n\n <div id=\"teabag-report\">\n <ol id=\"teabag-report-failures\"></ol>\n <ol id=\"teabag-report-all\"></ol>\n </div>\n</div>";
+ return el.innerHTML = Teabag.Reporters.HTML.template;
};
HTML.prototype.buildSuiteSelect = function() {
var options, suite, _i, _len, _ref;
if (Teabag.suites.all.length === 1) {
@@ -3029,10 +3032,17 @@
HTML.prototype.buildProgress = function() {
this.progress = Teabag.Reporters.HTML.ProgressView.create(this.config["display-progress"]);
return this.progress.appendTo(this.findEl("progress"));
};
+ HTML.prototype.buildFilters = function() {
+ if (this.filters.length) {
+ this.setClass("filter", "teabag-filtered");
+ }
+ return this.setHtml("filter-list", "<li>" + (this.filters.join("</li><li>")) + "</li>", true);
+ };
+
HTML.prototype.reportRunnerStarting = function(runner) {
this.total.exist = runner.total || runner.specs().length;
if (this.total.exist) {
return this.setText("stats-duration", "...");
}
@@ -3122,16 +3132,19 @@
HTML.prototype.setStatus = function(status) {
return document.body.className = "teabag-" + status;
};
- HTML.prototype.setFilter = function(filter) {
- if (!filter) {
- return;
+ HTML.prototype.setFilters = function() {
+ var link;
+ link = [Teabag.root, Teabag.suites.active].join('/');
+ if (Teabag.params["file"]) {
+ this.filters.push("<a href='" + link + "'>remove</a> by file: " + Teabag.params["file"]);
}
- this.setClass("filter", "teabag-filtered");
- return this.setHtml("filter-info", "" + filter, true);
+ if (Teabag.params["grep"]) {
+ return this.filters.push("<a href='" + link + "'>remove</a> by match: " + Teabag.params["grep"]);
+ }
};
HTML.prototype.readConfig = function() {
var config;
if (config = this.cookie("teabag")) {
@@ -3150,11 +3163,11 @@
this.cookie("teabag", this.config);
return this.refresh();
};
HTML.prototype.changeSuite = function() {
- return window.location.href = "/teabag/" + this.options[this.options.selectedIndex].value;
+ return window.location.href = [Teabag.root, this.options[this.options.selectedIndex].value].join('/');
};
HTML.prototype.refresh = function() {
return window.location.href = window.location.href;
};
@@ -3169,11 +3182,11 @@
match = document.cookie.match(new RegExp("(?:^|;)\\s?" + name + "=(.*?)(?:;|$)", "i"));
return match && JSON.parse(unescape(match[1]).split(" ")[0]);
} else {
date = new Teabag.Date();
date.setDate(date.getDate() + 365);
- return document.cookie = "" + name + "=" + (escape(JSON.stringify(value))) + "; path=\"/\"; expires=" + (date.toUTCString()) + ";";
+ return document.cookie = "" + name + "=" + (escape(JSON.stringify(value))) + "; expires=" + (date.toUTCString()) + "; path=/;";
}
};
return HTML;
@@ -3461,10 +3474,15 @@
})(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>";
+
+}).call(this);
+(function() {
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
Teabag.Reporters.Console = (function() {
function Console() {
@@ -3628,13 +3646,10 @@
env.specFilter = function(spec) {
return spec.getFullName().indexOf(grep) === 0;
};
}
reporter = new (this.getReporter())();
- if (typeof reporter.setFilter === "function") {
- reporter.setFilter(this.params["grep"]);
- }
env.addReporter(reporter);
return this.addFixtureSupport();
};
Runner.prototype.addFixtureSupport = function() {
@@ -3795,6 +3810,6 @@
})(Teabag.fixture);
env = jasmine.getEnv();
}).call(this);
-; FI"required_assets_digest; F"%31d7164ac3202a6a52ff6dd708afebd5I"
_version; F"%ffd318ca8b794f42f5029101c2cf5d91
+; FI"required_assets_digest; F"%24be0c2af4214d9af775ec2934956e05I"
_version; F"%ffd318ca8b794f42f5029101c2cf5d91
\ No newline at end of file