Home

# Library goog.testing.stacktrace

Function Summary
| `canonicalize(string stack) ⇒ string` Brings the stack trace into a common format across browsers.
| `followCallChain_() ⇒ !Array` Creates a stack trace by following the call chain. Based on {@link goog.debug.getStacktrace}.
| `framesToString_(!Array frames) ⇒ string` Converts the stack frames into canonical format. Chops the beginning and the end of it which come from the testing environment, not from the test itself.
| `get() ⇒ string` Gets the native stack trace if available otherwise follows the call chain.
| `htmlEscape_(string text) ⇒ string` Escapes the special character in HTML.
| `isClosureInspectorActive_() ⇒ boolean`
| `maybeDeobfuscateFunctionName_(string name) ⇒ string` Deobfuscates a compiled function name with the function passed to {@link #setDeobfuscateFunctionName}. Returns the original function name if the deobfuscator hasn't been set.
| `parseLongFirefoxFrame_(string frameStr) ⇒ !goog.testing.stacktrace.Frame` Parses a long firefox stack frame.
| `parseStackFrame_(string frameStr) ⇒ ?goog.testing.stacktrace.Frame` Parses one stack frame.
| `parse_(string stack) ⇒ !Array` Parses the browser's native stack trace.
| `setDeobfuscateFunctionName(function (string): string fn)` Sets function to deobfuscate function names.