Sha256: 44d33a1095fb7d4f2c81dc43892cf3830df2d4facf0ff1fb357179cf6e4d0c5d
Contents?: true
Size: 1.79 KB
Versions: 9
Compression:
Stored size: 1.79 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1349983246.196911:@value"Ä{I" class:EFI"BundledAsset; FI"logical_path; FI"konacha/iframe.js; TI" pathname; FI"l/Users/paul/.rvm/gems/ruby-1.9.3-p194/gems/konacha-2.0.0.beta3/app/assets/javascripts/konacha/iframe.js; FI"content_type; FI"application/javascript; FI" mtime; FI"2012-10-11T15:20:31-04:00; FI"length; FiÖI"digest; F"%cdf9165d0927f9959f8082b2e2c7bf93I"source; FI"Öwindow.Konacha = { reset: function() { document.body = document.createElement('body'); document.body.id = 'konacha'; } }; window.Mocha = Object.create(parent.Mocha); window.mocha = Object.create(parent.mocha); // In order to isolate top-level before/beforeEach hooks, // the specs in each iframe are wrapped in an anonymous suite. mocha.suite = Mocha.Suite.create(mocha.suite); // Override mocha.ui so that the pre-require event is emitted // with the iframe's `window` reference, rather than the parent's. mocha.ui = function (name) { this._ui = Mocha.interfaces[name]; if (!this._ui) throw new Error('invalid interface "' + name + '"'); this._ui = this._ui(this.suite); this.suite.emit('pre-require', window, null, this); return this; }; mocha.ui('bdd'); mocha.suite.beforeAll(function () { var contexts = parent.document.getElementsByClassName("test-context"); for (var i = 0; i < contexts.length; ++i) { if (contexts[i].contentWindow == window) { contexts[i].style.display = "block"; } else { contexts[i].style.display = null; } } }); mocha.suite.beforeEach(function () { Konacha.reset(); }); var expect = chai.expect, should = chai.should(), assert = chai.assert; ; FI"required_assets_digest; F"%9b42c6b9b54b4259308030e46f361ddaI" _version; F"%9f3b95dd7ea3030dc35985c0a8020862
Version data entries
9 entries across 9 versions & 1 rubygems