Skip to content
Myr

Remotely patched JSpec

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 489b88c · Browse files · 3 files+18 added−252 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+18 added−252 removed

  • tests:+18 added−252 removed

3 files+18 added−252 removed

modified:spec/lib/jspec.js+3 added-8 removed
202 unmodified lines
203 print("")204 }205 })206 207 var promise = new process.Promise208 results.stats.failures == 0 ?209 promise.emitSuccess("", "") :210 promise.emitError(results.stats.failures, "")207 quit(results.stats.failures)208 },209210 /**211 * Console formatter.
1391 unmodified lines
16031604 load : function(file, callback) {1605 if (any(hook('loading', file), haveStopped)) return1606 if ('readFile' in main)1610 return readFile(file, callback)1607 return readFile(file)1608 else if (this.hasXhr()) {1609 var request = this.xhr()1610 request.open('GET', file, false)1611 request.send(null)
15 unmodified lines
1627 */16281629 exec : function(file) {1630 if (any(hook('executing', file), haveStopped)) return this1634 this.load(file, function(contents){1635 eval('with (JSpec){' + JSpec.preprocess(contents) + '}')1636 })1631 eval('with (JSpec){' + this.preprocess(this.load(file)) + '}')1632 return this1633 }1634 }1635
141 unmodified lines
modified:spec/spec.core.js+5 added-239 removed
modified:spec/spec.node.js+10 added-5 removed