Sha256: 1a06e19c39f16d8e818ba277c147030590116f77ffdb8d5e46243bca336ca79e
Contents?: true
Size: 443 Bytes
Versions: 28
Compression:
Stored size: 443 Bytes
Contents
/** * Blocks are functions with executable code that make up a spec. * * @constructor * @param {jasmine.Env} env * @param {Function} func * @param {jasmine.Spec} spec */ jasmine.Block = function(env, func, spec) { this.env = env; this.func = func; this.spec = spec; }; jasmine.Block.prototype.execute = function(onComplete) { try { this.func.apply(this.spec); } catch (e) { this.spec.fail(e); } onComplete(); };
Version data entries
28 entries across 28 versions & 8 rubygems