Home | History | Annotate | Download | only in mocha

Lines Matching refs:Stack

1473  *   - `fullTrace` display the full stack-trace on failing
1675 * Display long stack-trace on failing
2044 , 'error stack': 90
2148 + color('error stack', '\n%s\n');
2153 , stack = err.stack || message
2154 , index = stack.indexOf(message) + message.length
2155 , msg = stack.slice(0, index)
2173 fmt = color('error title', ' %s) %s:\n%s') + color('error stack', '\n%s\n');
2184 // indent stack trace without msg
2185 stack = stack.slice(index ? index + 1 : index)
2188 console.log(fmt, (i + 1), test.fullTitle(), msg, stack);
2695 , stack = [report]
2742 stack[0].appendChild(el);
2743 stack.unshift(document.createElement('ul'));
2744 el.appendChild(stack[0]);
2749 stack.shift();
2775 var str = test.err.stack || test.err.toString();
2786 // Safari doesn't give you a stack. Let's at least provide a source line.
2787 if (!test.err.stack && test.err.sourceURL && test.err.line !== undefined) {
2810 // Don't call .appendChild if #mocha-report was already .shift()'ed off the stack.
2811 if (stack[0]) stack[0].appendChild(el);
4100 if (err.stack) console.log(err.stack.replace(/^/gm, ' '));
4245 this.write(tag('testcase', attrs, false, tag('failure', {}, false, cdata(escape(err.message) + "\n" + err.stack))));
4782 err.stack = this.fullStackTrace
4783 ? err.stack
4784 : stackFilter(err.stack);
6194 * @param {Array} [stack=[]] Stack of seen values
6200 exports.canonicalize = function(value, stack) {
6205 stack.push(value);
6207 stack.pop();
6210 stack = stack || [];
6212 if (exports.indexOf(stack, value) !== -1) {
6225 return exports.canonicalize(item, stack);
6243 canonicalizedObj[key] = exports.canonicalize(value[key], stack);
6332 * When invoking this function you get a filter function that get the Error.stack as an input,
6334 * (i.e: strip Mocha, node_modules, bower and componentJS from stack trace).
6372 return function(stack) {
6373 stack = stack.split('\n');
6375 stack = stack.reduce(function (list, line) {
6389 return stack.join('\n');