Lines Matching refs:function
0 ;(function(){
5 function require(p){
18 require.resolve = function (path){
27 require.register = function (path, fn){
31 require.relative = function (parent) {
32 return function(p){
50 require.register("browser/debug.js", function(module, exports, require){
51 module.exports = function(type){
52 return function(){
58 require.register("browser/diff.js", function(module, exports, require){
75 var JsDiff = (function() {
77 function clonePath(path) {
80 function removeEmpty(array) {
89 function escapeHTML(s) {
99 var Diff = function(ignoreWhitespace) {
103 diff: function(oldString, newString) {
169 pushComponent: function(components, value, added, removed) {
180 extractCommon: function(basePath, newString, oldString, diagonalPath) {
195 equals: function(left, right) {
203 join: function(left, right) {
206 tokenize: function(value) {
215 WordDiff.tokenize = WordWithSpaceDiff.tokenize = function(value) {
220 CssDiff.tokenize = function(value) {
225 LineDiff.tokenize = function(value) {
247 diffChars: function(oldStr, newStr) { return CharDiff.diff(oldStr, newStr); },
248 diffWords: function(oldStr, newStr) { return WordDiff.diff(oldStr, newStr); },
249 diffWordsWithSpace: function(oldStr, newStr) { return WordWithSpaceDiff.diff(oldStr, newStr); },
250 diffLines: function(oldStr, newStr) { return LineDiff.diff(oldStr, newStr); },
252 diffCss: function(oldStr, newStr) { return CssDiff.diff(oldStr, newStr); },
254 createPatch: function(fileName, oldStr, newStr, oldHeader, newHeader) {
268 function contextLines(lines) {
269 return lines.map(function(entry) { return ' ' + entry; });
271 function eofNL(curRange, i, current) {
301 curRange.push.apply(curRange, lines.map(function(entry) { return (current.added?'+':'-') + entry; }));
339 applyPatch: function(oldStr, uniDiff) {
392 convertChangesToXML: function(changes){
414 convertChangesToDMP: function(changes){
431 require.register("browser/escape-string-regexp.js", function(module, exports, require){
436 module.exports = function (str) {
446 require.register("browser/events.js", function(module, exports, require){
457 function isArray(obj) {
467 function EventEmitter(){};
475 EventEmitter.prototype.on = function (name, fn) {
499 EventEmitter.prototype.once = function (name, fn) {
502 function on () {
519 EventEmitter.prototype.removeListener = function (name, fn) {
556 EventEmitter.prototype.removeAllListeners = function (name) {
575 EventEmitter.prototype.listeners = function (name) {
597 EventEmitter.prototype.emit = function (name) {
610 if ('function' == typeof handler) {
627 require.register("browser/fs.js", function(module, exports, require){
631 require.register("browser/glob.js", function(module, exports, require){
635 require.register("browser/path.js", function(module, exports, require){
639 require.register("browser/progress.js", function(module, exports, require){
650 function Progress() {
665 Progress.prototype.size = function(n){
678 Progress.prototype.text = function(str){
691 Progress.prototype.fontSize = function(n){
703 Progress.prototype.font = function(family){
715 Progress.prototype.update = function(n){
727 Progress.prototype.draw = function(ctx){
768 require.register("browser/tty.js", function(module, exports, require){
769 exports.isatty = function(){
773 exports.getWindowSize = function(){
784 require.register("context.js", function(module, exports, require){
797 function Context(){}
807 Context.prototype.runnable = function(runnable){
821 Context.prototype.timeout = function(ms){
835 Context.prototype.enableTimeouts = function (enabled) {
849 Context.prototype.slow = function(ms){
861 Context.prototype.skip = function(){
873 Context.prototype.inspect = function(){
874 return JSON.stringify(this, function(key, val){
883 require.register("hook.js", function(module, exports, require){
900 * @param {Function} fn
904 function Hook(title, fn) {
913 function F(){};
927 Hook.prototype.error = function(err){
939 require.register("interfaces/bdd.js", function(module, exports, require){
952 * describe('Array', function(){
953 * describe('#indexOf()', function(){
954 * it('should return -1 when not present', function(){
958 * it('should return the index when present', function(){
966 module.exports = function(suite){
969 suite.on('pre-require', function(context, file, mocha){
984 context.describe = context.context = function(title, fn){
999 context.describe.skip = function(title, fn){
1011 context.describe.only = function(title, fn){
1023 context.it = context.specify = function(title, fn){
1036 context.it.only = function(title, fn){
1049 context.it.skip = function(title){
1058 require.register("interfaces/common.js", function(module, exports, require){
1066 module.exports = function (suites, context) {
1071 * root suite execution. Returns a function which runs the root suite.
1073 runWithSuite: function runWithSuite(suite) {
1074 return function run() {
1082 before: function (name, fn) {
1089 after: function (name, fn) {
1096 beforeEach: function (name, fn) {
1103 afterEach: function (name, fn) {
1111 skip: function (title) {
1120 require.register("interfaces/exports.js", function(module, exports, require){
1133 * 'should return -1 when the value is not present': function(){
1137 * 'should return the correct index when the value is present': function(){
1145 module.exports = function(suite){
1150 function visit(obj, file) {
1153 if ('function' == typeof obj[key]) {
1185 require.register("interfaces/index.js", function(module, exports, require){
1193 require.register("interfaces/qunit.js", function(module, exports, require){
1208 * test('#length', function(){
1213 * test('#indexOf()', function(){
1222 * test('#length', function(){
1228 module.exports = function(suite){
1231 suite.on('pre-require', function(context, file, mocha){
1244 context.suite = function(title){
1256 context.suite.only = function(title, fn){
1267 context.test = function(title, fn){
1278 context.test.only = function(title, fn){
1291 require.register("interfaces/tdd.js", function(module, exports, require){
1304 * suite('Array', function(){
1305 * suite('#indexOf()', function(){
1306 * suiteSetup(function(){
1310 * test('should return -1 when not present', function(){
1314 * test('should return the index when present', function(){
1318 * suiteTeardown(function(){
1326 module.exports = function(suite){
1329 suite.on('pre-require', function(context, file, mocha){
1344 context.suite = function(title, fn){
1356 context.suite.skip = function(title, fn) {
1368 context.suite.only = function(title, fn){
1379 context.test = function(title, fn){
1392 context.test.only = function(title, fn){
1404 require.register("mocha.js", function(module, exports, require){
1429 if (typeof process !== 'undefined' && typeof process.cwd === 'function') {
1457 function image(name) {
1480 function Mocha(options) {
1495 this.suite.on('pre-require', function (context) {
1519 Mocha.prototype.bail = function(bail){
1532 Mocha.prototype.addFile = function(file){
1540 * @param {String|Function} reporter name or constructor
1544 Mocha.prototype.reporter = function(reporter, reporterOptions){
1545 if ('function' == typeof reporter) {
1570 Mocha.prototype.ui = function(name){
1585 Mocha.prototype.loadFiles = function(fn){
1589 this.files.forEach(function(file){
1604 Mocha.prototype._growl = function(runner, reporter) {
1607 runner.on('end', function(){
1630 Mocha.prototype.grep = function(re){
1644 Mocha.prototype.invert = function(){
1657 Mocha.prototype.ignoreLeaks = function(ignore){
1669 Mocha.prototype.checkLeaks = function(){
1681 Mocha.prototype.fullTrace = function() {
1693 Mocha.prototype.growl = function(){
1706 Mocha.prototype.globals = function(globals){
1719 Mocha.prototype.useColors = function(colors){
1734 Mocha.prototype.useInlineDiffs = function(inlineDiffs) {
1749 Mocha.prototype.timeout = function(timeout){
1762 Mocha.prototype.slow = function(slow){
1775 Mocha.prototype.enableTimeouts = function(enabled) {
1789 Mocha.prototype.asyncOnly = function(){
1799 Mocha.prototype.noHighlighting = function() {
1809 Mocha.prototype.delay = function delay() {
1817 * @param {Function} fn
1821 Mocha.prototype.run = function(fn){
1839 function done(failures) {
1850 require.register("ms.js", function(module, exports, require){
1874 module.exports = function(val, options){
1888 function parse(str) {
1927 function shortFormat(ms) {
1943 function longFormat(ms) {
1955 function plural(ms, n, name) {
1963 require.register("pending.js", function(module, exports, require){
1977 function Pending(message) {
1983 require.register("reporters/base.js", function(module, exports, require){
2085 var color = exports.color = function(type, str) {
2109 hide: function(){
2113 show: function(){
2117 deleteLine: function(){
2121 beginningOfLine: function(){
2125 CR: function(){
2142 exports.list = function(failures){
2144 failures.forEach(function(test, i){
2204 function Base(runner) {
2214 runner.on('start', function(){
2218 runner.on('suite', function(suite){
2223 runner.on('test end', function(test){
2228 runner.on('pass', function(test){
2241 runner.on('fail', function(test, err){
2248 runner.on('end', function(){
2253 runner.on('pending', function(){
2265 Base.prototype.epilogue = function(){
2311 function pad(str, len) {
2325 function inlineDiff(err, escape) {
2332 msg = lines.map(function(str, i){
2359 function unifiedDiff(err, escape) {
2361 function cleanUp(line) {
2371 function notBlank(line) {
2391 function errorDiff(err, type, escape) {
2394 return diff['diff' + type](actual, expected).map(function(str){
2408 function escapeInvisibles(line) {
2423 function colorLines(name, str) {
2424 return str.split('\n').map(function(str){
2438 function sameType(a, b) {
2446 require.register("reporters/doc.js", function(module, exports, require){
2467 function Doc(runner) {
2475 function indent() {
2479 runner.on('suite', function(suite){
2488 runner.on('suite end', function(suite){
2496 runner.on('pass', function(test){
2502 runner.on('fail', function(test, err){
2512 require.register("reporters/dot.js", function(module, exports, require){
2533 function Dot(runner) {
2541 runner.on('start', function(){
2545 runner.on('pending', function(test){
2550 runner.on('pass', function(test){
2559 runner.on('fail', function(test, err){
2564 runner.on('end', function(){
2574 function F(){};
2582 require.register("reporters/html-cov.js", function(module, exports, require){
2603 function HTMLCov(runner) {
2612 runner.on('end', function(){
2627 function coverageClass(n) {
2636 require.register("reporters/html.js", function(module, exports, require){
2680 function HTML(runner) {
2714 on(passesLink, 'click', function(){
2722 on(failuresLink, 'click', function(){
2734 runner.on('suite', function(suite){
2747 runner.on('suite end', function(suite){
2752 runner.on('fail', function(test, err){
2756 runner.on('test end', function(test){
2799 on(h2, 'click', function(){
2820 var makeUrl = function makeUrl(s) {
2836 HTML.prototype.suiteURL = function(suite){
2846 HTML.prototype.testURL = function
2854 function error(msg) {
2862 function fragment(html) {
2867 div.innerHTML = html.replace(/%([se])/g, function(_, type){
2882 function hideSuitesWithout(classname) {
2894 function unhide() {
2905 function text(el, str) {
2917 function on(el, event, fn) {
2927 require.register("reporters/index.js", function(module, exports, require){
2948 require.register("reporters/json-cov.js", function(module, exports, require){
2969 function JSONCov(runner, output) {
2979 runner.on('test end', function(test){
2983 runner.on('pass', function(test){
2987 runner.on('fail', function(test){
2991 runner.on('end', function(){
3012 function map(cov) {
3030 ret.files.sort(function(a, b) {
3051 function coverage(filename, data) {
3061 data.source.forEach(function(line, num){
3094 function clean(test) {
3104 require.register("reporters/json-stream.js", function(module, exports, require){
3125 function List(runner) {
3132 runner.on('start', function(){
3136 runner.on('pass', function(test){
3140 runner.on('fail', function(test, err){
3146 runner.on('end', function(){
3160 function clean(test) {
3170 require.register("reporters/json.js", function(module, exports, require){
3192 function JSONReporter(runner) {
3201 runner.on('test end', function(test){
3205 runner.on('pass', function(test){
3209 runner.on('fail', function(test){
3213 runner.on('pending', function(test){
3217 runner.on('end', function(){
3241 function clean(test) {
3256 function errorJSON(err) {
3258 Object.getOwnPropertyNames(err).forEach(function(key) {
3266 require.register("reporters/landing.js", function(module, exports, require){
3306 function Landing(runner) {
3318 function runway() {
3323 runner.on('start', function(){
3328 runner.on('test end', function(test){
3351 runner.on('end', function(){
3362 function F(){};
3370 require.register("reporters/list.js", function(module, exports, require){
3392 function List(runner) {
3399 runner.on('start', function(){
3403 runner.on('test', function(test){
3407 runner.on('pending', function(test){
3413 runner.on('pass', function(test){
3421 runner.on('fail', function(test, err){
3433 function F(){};
3441 require.register("reporters/markdown.js", function(module, exports, require){
3468 function Markdown(runner) {
3476 function title(str) {
3480 function indent() {
3484 function mapTOC(suite, obj) {
3488 suite.suites.forEach(function(suite){
3494 function stringifyTOC(obj, level) {
3510 function generateTOC(suite) {
3517 runner.on('suite', function(suite){
3524 runner.on('suite end', function(suite){
3528 runner.on('pass', function(test){
3536 runner.on('end', function(){
3545 require.register("reporters/min.js", function(module, exports, require){
3565 function Min(runner) {
3568 runner.on('start', function(){
3582 function F(){};
3590 require.register("reporters/nyan.js", function(module, exports, require){
3610 function NyanCat(runner) {
3625 runner.on('start', function(){
3630 runner.on('pending', function(test){
3634 runner.on('pass', function(test){
3638 runner.on('fail', function(test, err){
3642 runner.on('end', function(){
3655 NyanCat.prototype.draw = function(){
3670 NyanCat.prototype.drawScoreboard = function(){
3673 function draw(type, n) {
3693 NyanCat.prototype.appendRainbow = function(){
3710 NyanCat.prototype.drawRainbow = function(){
3713 this.trajectories.forEach(function(line, index) {
3728 NyanCat.prototype.drawNyanCat = function() {
3765 NyanCat.prototype.face = function() {
3785 NyanCat.prototype.cursorUp = function(n) {
3796 NyanCat.prototype.cursorDown = function(n) {
3807 NyanCat.prototype.generateColors = function(){
3830 NyanCat.prototype.rainbowify = function(str){
3842 function write(string) {
3850 function F(){};
3858 require.register("reporters/progress.js", function(module, exports, require){
3887 function Progress(runner, options) {
3907 runner.on('start', function(){
3913 runner.on('test end', function(){
3939 runner.on('end', function(){
3950 function F(){};
3958 require.register("reporters/spec.js", function(module, exports, require){
3980 function Spec(runner) {
3988 function indent() {
3992 runner.on('start', function(){
3996 runner.on('suite', function(suite){
4001 runner.on('suite end', function(suite){
4006 runner.on('pending', function(test){
4011 runner.on('pass', function(test){
4028 runner.on('fail', function(test, err){
4040 function F(){};
4048 require.register("reporters/tap.js", function(module, exports, require){
4070 function TAP(runner) {
4079 runner.on('start', function(){
4084 runner.on('test end', function(){
4088 runner.on('pending', function(test){
4092 runner.on('pass', function(test){
4097 runner.on('fail', function(test, err){
4103 runner.on('end', function(){
4118 function title(test) {
4124 require.register("reporters/xunit.js", function(module, exports, require){
4157 function XUnit(runner, options) {
4170 runner.on('pending', function(test){
4174 runner.on('pass', function(test){
4178 runner.on('fail', function(test){
4182 runner.on('end', function(){
4193 tests.forEach(function(t) { self.test(t); });
4201 XUnit.prototype.done = function(failures, fn) {
4203 this.fileStream.end(function() {
4215 function F(){};
4224 XUnit.prototype.write = function(line) {
4236 XUnit.prototype.test = function(test, ostream) {
4257 function tag(name, attrs, close, content) {
4275 function cdata(str) {
4281 require.register("runnable.js", function(module, exports, require){
4318 * @param {Function} fn
4322 function Runnable(title, fn) {
4338 function F(){};
4352 Runnable.prototype.timeout = function(ms){
4370 Runnable.prototype.slow = function(ms){
4386 Runnable.prototype.enableTimeouts = function(enabled){
4399 Runnable.prototype.skip = function(){
4411 Runnable.prototype.fullTitle = function(){
4421 Runnable.prototype.clearTimeout = function(){
4432 Runnable.prototype.inspect = function(){
4433 return JSON.stringify(this, function(key, val){
4447 Runnable.prototype.resetTimeout = function(){
4453 this.timer = setTimeout(function(){
4465 Runnable.prototype.globals = function(arr){
4473 * @param {Function} fn
4477 Runnable.prototype.run = function(fn){
4488 function multiple(err) {
4495 function done(err) {
4518 this.fn.call(ctx, function(err){
4550 function callFn(fn) {
4552 if (result && typeof result.then === 'function') {
4555 .then(function() {
4558 function(reason) {
4569 require.register("runner.js", function(module, exports, require){
4629 function Runner(suite, delay) {
4637 this.on('test end', function(test){ self.checkGlobals(test); });
4638 this.on('hook end', function(hook){ self.checkGlobals(hook); });
4646 * @param {Function} fn
4656 function F(){};
4672 Runner.prototype.grep = function(re, invert){
4689 Runner.prototype.grepTotal = function(suite) {
4693 suite.eachTest(function(test){
4709 Runner.prototype.globalProps = function() {
4729 Runner.prototype.globals = function(arr){
4742 Runner.prototype.checkGlobals = function(test){
4774 Runner.prototype.fail = function(test, err) {
4810 Runner.prototype.failHook = function(hook, err){
4821 * @param {Function} function
4825 Runner.prototype.hook = function(name, fn){
4831 function next(i) {
4840 hook.on('error', function(err){
4844 hook.run(function(err){
4864 Runner.immediately(function(){
4875 * @param {Function} fn
4879 Runner.prototype.hooks = function(name, suites, fn){
4883 function next(suite) {
4891 self.hook(name, function(err){
4909 * @param {Function} fn
4913 Runner.prototype.hookUp = function(name, fn){
4922 * @param {Function} fn
4926 Runner.prototype.hookDown = function(name, fn){
4939 Runner.prototype.parents = function(){
4949 * @param {Function} fn
4953 Runner.prototype.runTest = function(fn){
4960 test.on('error', function(err){
4974 * @param {Function} fn
4978 Runner.prototype.runTests = function(suite, fn){
4984 function hookErr(err, errSuite, after) {
4994 self.hookUp('afterEach', function(err2, errSuite2) {
5008 function next(err, errSuite) {
5036 self.hookDown('beforeEach', function(err, errSuite){
5046 self.runTest(function(err){
5081 * @param {Function} fn
5085 Runner.prototype.runSuite = function(suite, fn){
5096 function next(errSuite) {
5117 function done(errSuite) {
5119 self.hook('afterAll', function(){
5125 this.hook('beforeAll', function(err){
5138 Runner.prototype.uncaught = function(err){
5140 debug('uncaught exception %s', err !== function () {
5173 * @param {Function} fn
5178 Runner.prototype.run = function(fn){
5182 fn = fn || function(){};
5184 function uncaught(err){
5188 function start() {
5190 self.runSuite(rootSuite, function(){
5199 this.on('end', function(){
5227 Runner.prototype.abort = function(){
5241 function filterLeaks(ok, globals) {
5242 return filter(globals, function(key){
5258 function(ok){
5273 function extraGlobals() {
5277 var nodeVersion = process.version.split('.').reduce(function(a, v) {
5293 require.register("suite.js", function(module, exports, require){
5323 exports.create = function(parent, title){
5341 function Suite(title, parentContext) {
5343 var context = function() {};
5365 function F(){};
5378 Suite.prototype.clone = function(){
5397 Suite.prototype.timeout = function(ms){
5414 Suite.prototype.enableTimeouts = function(enabled){
5429 Suite.prototype.slow = function(ms){
5445 Suite.prototype.bail = function(bail){
5455 * @param {Function} fn
5460 Suite.prototype.beforeAll = function(title, fn){
5462 if ('function' === typeof title) {
5482 * @param {Function} fn
5487 Suite.prototype.afterAll = function(title, fn){
5489 if ('function' === typeof title) {
5509 * @param {Function} fn
5514 Suite.prototype.beforeEach = function(title, fn){
5516 if ('function' === typeof title) {
5536 * @param {Function} fn
5541 Suite.prototype.afterEach = function(title, fn){
5543 if ('function' === typeof title) {
5568 Suite.prototype.addSuite = function(suite){
5587 Suite.prototype.addTest = function(test){
5606 Suite.prototype.fullTitle = function(){
5621 Suite.prototype.total = function(){
5622 return utils.reduce(this.suites, function(sum, suite){
5629 * all tests. Applies a function in the format
5632 * @param {Function} fn
5637 Suite.prototype.eachTest = function(fn){
5639 utils.forEach(this.suites, function(suite){
5648 Suite.prototype.run = function run() {
5656 require.register("test.js", function(module, exports, require){
5673 * @param {Function} fn
5677 function Test(title, fn) {
5687 function F(){};
5695 require.register("utils.js", function(module, exports, require){
5722 exports.escape = function(html){
5734 * @param {Function} fn
5739 exports.forEach = function(arr, fn, scope){
5748 * @param {Function} fn
5753 exports.map = function(arr, fn, scope){
5769 exports.indexOf = function(arr, obj, start){
5781 * @param {Function} fn
5786 exports.reduce = function(arr, fn, val){
5800 * @param {Function} fn
5804 exports.filter = function(arr, fn){
5823 exports.keys = Object.keys || function(obj) {
5841 * @param {Function} fn
5845 exports.watch = function(files, fn){
5847 files.forEach(function(file){
5849 fs.watchFile(file, options, function(curr, prev){
5862 var isArray = Array.isArray || function (obj) {
5869 * @type {Function}
5872 Buffer.prototype.toJSON = Buffer.prototype.toJSON || function () {
5881 function ignored(path){
5892 exports.files = function(dir, ext, ret){
5900 .forEach(function(path){
5920 exports.slug = function(str){
5928 * Strip the function definition from `str`,
5932 exports.clean = function(str) {
5935 .replace(/^function *\(.*\) *{|\(.*\) *=> *{?/, '')
5955 exports.trim = function(str){
5967 exports.parseQuery = function(qs){
5968 return exports.reduce(qs.replace('?', '').split('&'), function(obj, pair){
5986 function highlight(js) {
5995 .replace(/\b(function|new|throw|return|var|if|else)\b/gm, '<span class="keyword">$1</span>')
6005 exports.highlightTags = function(name) {
6013 * If a value could have properties, and has none, this function is called, which returns
6016 * Functions w/ no properties return `'[Function]'`
6025 var emptyRepresentation = function emptyRepresentation(value, type) {
6029 case 'function':
6030 return '[Function]';
6058 exports.type = function type(value) {
6071 * - If `value` is not an object, function or array, return result of `value.toString()` wrapped in double-quotes.
6072 * - If `value` is an *empty* object, function, or array, return result of function
6083 exports.stringify = function(value) {
6086 if (!~exports.indexOf(['object', 'array', 'function'], type)) {
6114 function jsonStringify(object, spaces, depth) {
6122 , repeat = function(s, n) { return new Array(n).join(s); }; // `.repeat()` polyfill
6124 function _stringify(val) {
6151 val = (val == '[Function]' || val == '[Circular]')
6178 exports.isBuffer = function (arg) {
6189 * - is not a primitive or an `Array`, `Object`, or `Function`, return the value of the Thing's `toString()` method
6190 * - is a non-empty `Array`, `Object`, or `Function`, return the result of calling this function again.
6191 * - is an empty `Array`, `Object`, or `Function`, return the result of calling `emptyRepresentation()`
6195 * @return {(Object|Array|Function|string|undefined)}
6200 exports.canonicalize = function(value, stack) {
6204 withStack = function withStack(value, fn) {
6223 withStack(value, function () {
6224 canonicalizedObj = exports.map(value, function (item) {
6229 case 'function':
6241 withStack(value, function () {
6242 exports.forEach(exports.keys(value).sort(), function (key) {
6263 exports.lookupFiles = function lookupFiles(path, extensions, recursive) {
6285 fs.readdirSync(path).forEach(function(file) {
6312 exports.undefinedError = function() {
6323 exports.getError = function(err) {
6332 * When invoking this function you get a filter function that get the Error.stack as an input,
6335 * @returns {Function}
6338 exports.stackTraceFilter = function() {
6347 function isNodeModule (line) {
6351 function isMochaInternal (line) {
6358 function isBrowserModule(line) {
6363 function isNodeInternal (line) {
6372 return function(stack) {
6375 stack = stack.reduce(function (list, line) {
6394 var global = (function() { return this; })();
6416 process.exit = function(status){};
6428 process.removeListener = function(e, fn){
6433 global.onerror = function() {};
6444 process.on = function(e, fn){
6446 global.onerror = function(err, url, line){
6469 function timeslice() {
6485 Mocha.Runner.immediately = function(callback) {
6493 * Function to allow assertion libraries to throw errors directly into mocha.
6497 mocha.throwError = function(err) {
6498 Mocha.utils.forEach(uncaughtExceptionHandlers, function (fn) {
6509 mocha.ui = function(ui){
6519 mocha.setup = function(opts){
6533 mocha.run = function(fn){
6542 return Mocha.prototype.run.call(mocha, function(err){