spec/dummy/tmp/cache/assets/E41/250/sprockets%2F97cf8fe3d7ffaff076f655aefb36da03 in teabag-0.5.5 vs spec/dummy/tmp/cache/assets/E41/250/sprockets%2F97cf8fe3d7ffaff076f655aefb36da03 in teabag-0.6.0
- old
+ new
@@ -1,8 +1,8 @@
-o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1360718175.638251:@value"ú{I"
+o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1361302430.9396281:@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-12T18:14:07-07:00; FI"length; FiI"digest; F"%e33e7becaccffc3dc3c5e459bcf10ab0I"source; FI"(function() {
+mtime; FI"2013-02-16T14:42:32-07:00; FI"length; Fi…I"digest; F"%4d38cee32fadaf50cd7fdace3c3721fcI"source; FI"…(function() {
var system, webpage,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
system = require("system");
@@ -80,19 +80,29 @@
Runner.prototype.pageCallbacks = function() {
var _this = this;
return {
onError: function(message, trace) {
- return console.log(JSON.stringify({
+ console.log(JSON.stringify({
_teabag: true,
type: "error",
message: message,
trace: trace
}));
+ return _this.errored = true;
},
onConsoleMessage: function(msg) {
- return console.log(msg);
+ console.log(msg);
+ if (_this.errorTimeout) {
+ clearTimeout(_this.errorTimeout);
+ }
+ if (_this.errored) {
+ _this.errorTimeout = setTimeout((function() {
+ return _this.fail('Javascript error has cause a timeout.');
+ }), 1000);
+ return _this.errored = false;
+ }
},
onLoadFinished: function(status) {
var defined;
if (_this.start) {
return;
@@ -115,6 +125,6 @@
})();
new Runner().run();
}).call(this);
-; FI"required_assets_digest; F"%8c3cd463777b3e596bfb5210aa62d428I"
_version; F"%6776f581a4329e299531e1d52aa59832
+; FI"required_assets_digest; F"%32818281001693c86c2333f6fe72f390I"
_version; F"%6776f581a4329e299531e1d52aa59832
\ No newline at end of file