spec/dummy/tmp/cache/assets/E41/250/sprockets%2F97cf8fe3d7ffaff076f655aefb36da03 in teabag-0.7.0 vs spec/dummy/tmp/cache/assets/E41/250/sprockets%2F97cf8fe3d7ffaff076f655aefb36da03 in teabag-0.7.1

- old
+ new

@@ -1,20 +1,18 @@ -o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1365130835.0944371: @value"a{I" -class:EFI"BundledAsset;FI"logical_path;FI" drivers/phantomjs/runner.js;FI" pathname;FI"P/Users/jejacks0n/Projects/teabag/lib/teabag/drivers/phantomjs/runner.coffee;FI"content_type;FI"application/javascript;FI" -mtime;FI"2013-02-16T14:42:32-07:00;FI" length;Fi… I" digest;F"%4d38cee32fadaf50cd7fdace3c3721fcI" source;FI"… (function() { +o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1365828793.4423869: @value"œ{I" +class:EFI"ProcessedAsset;FI"logical_path;FI" drivers/phantomjs/runner.js;FI" pathname;FI"P/Users/jejacks0n/Projects/teabag/lib/teabag/drivers/phantomjs/runner.coffee;FI"content_type;FI"application/javascript;FI" +mtime;FI"2013-02-16T14:42:32-07:00;FI" length;Fi‡ I" digest;F"%32245db0af63718cd7bfca4c4de2a9efI" source;FI"‡ (function() { var system, webpage, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; system = require("system"); webpage = require("webpage"); this.Runner = (function() { - function Runner() { - this.waitForResults = __bind(this.waitForResults, this); - this.url = system.args[1]; + this.waitForResults = __bind(this.waitForResults, this); this.url = system.args[1]; this.timeout = parseInt(system.args[2] || 180) * 1000; } Runner.prototype.run = function() { this.initPage(); @@ -29,10 +27,11 @@ }; }; Runner.prototype.loadPage = function() { var method, name, _ref, _results; + this.page.open(this.url); _ref = this.pageCallbacks(); _results = []; for (name in _ref) { method = _ref[name]; @@ -41,10 +40,11 @@ return _results; }; Runner.prototype.waitForResults = function() { var finished; + if ((new Date().getTime() - this.start) >= this.timeout) { this.fail("Timed out"); } finished = this.page.evaluate(function() { return window.Teabag && window.Teabag.finished; @@ -78,10 +78,11 @@ return phantom.exit(0); }; Runner.prototype.pageCallbacks = function() { var _this = this; + return { onError: function(message, trace) { console.log(JSON.stringify({ _teabag: true, type: "error", @@ -102,10 +103,11 @@ return _this.errored = false; } }, onLoadFinished: function(status) { var defined; + if (_this.start) { return; } _this.start = new Date().getTime(); defined = _this.page.evaluate(function() { @@ -125,6 +127,7 @@ })(); new Runner().run(); }).call(this); -;FI"required_assets_digest;F"%32818281001693c86c2333f6fe72f390I" _version;F"%6776f581a4329e299531e1d52aa59832 +;TI"dependency_digest;F"%3a9a6b6d3d39ed9db5d8d15ae601a466I"required_paths;F[I"P/Users/jejacks0n/Projects/teabag/lib/teabag/drivers/phantomjs/runner.coffee;FI"dependency_paths;F[{I" path;FI"P/Users/jejacks0n/Projects/teabag/lib/teabag/drivers/phantomjs/runner.coffee;FI" +mtime;FI"2013-02-16T14:42:32-07:00;FI" digest;F"%194b9edb992e58e1b98cd8d90e615e9dI" _version;F"%6776f581a4329e299531e1d52aa59832 \ No newline at end of file