stacktrace.js
No description.

File Location

/goog/testing/stacktrace.js

Classes

goog.testing.stacktrace.Frame
Class representing one stack frame.

Public Protected Private

Global Functions

goog.testing.stacktrace.callSitesToFrames_(stack) !Array.<!goog.testing.stacktrace.Frame>
Converts an array of CallSite (elements of a stack trace in V8) to an array of Frames.
Arguments:
stack : !Array.<!CallSite>
The stack as an array of CallSites.
Returns: !Array.<!goog.testing.stacktrace.Frame>  The stack as an array of Frames.
code »
goog.testing.stacktrace.canonicalize(stack) string
Brings the stack trace into a common format across browsers.
Arguments:
stack : string
Browser-specific stack trace.
Returns: string  Same stack trace in common format.
code »
goog.testing.stacktrace.deobfuscateFunctionName_()
Function to deobfuscate function names.
code »
goog.testing.stacktrace.followCallChain_() !Array.<!goog.testing.stacktrace.Frame>
Creates a stack trace by following the call chain. Based on goog.debug.getStacktrace.
Returns: !Array.<!goog.testing.stacktrace.Frame>  Stack frames.
code »
goog.testing.stacktrace.framesToString_(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.
Arguments:
frames : !Array.<goog.testing.stacktrace.Frame>
The frames.
Returns: string  Canonical, pretty printed stack trace.
code »
goog.testing.stacktrace.get() string
Gets the native stack trace if available otherwise follows the call chain.
Returns: string  The stack trace in canonical format.
code »
goog.testing.stacktrace.getNativeStack_() string | !Array.<!CallSite>
Returns the native stack trace.
Returns: string | !Array.<!CallSiteNo description.
code »
goog.testing.stacktrace.htmlEscape_(text) string
Escapes the special character in HTML.
Arguments:
text : string
Plain text.
Returns: string  Escaped text.
code »
goog.testing.stacktrace.isClosureInspectorActive_() boolean
No description.
Returns: boolean  Whether the Closure Inspector is active.
code »
goog.testing.stacktrace.maybeDeobfuscateFunctionName_(name) string
Deobfuscates a compiled function name with the function passed to #setDeobfuscateFunctionName. Returns the original function name if the deobfuscator hasn't been set.
Arguments:
name : string
The function name to deobfuscate.
Returns: string  The deobfuscated function name.
code »
goog.testing.stacktrace.parseLongFirefoxFrame_(frameStr) !goog.testing.stacktrace.Frame
Parses a long firefox stack frame.
Arguments:
frameStr : string
The stack frame as string.
Returns: !goog.testing.stacktrace.Frame  Stack frame object.
code »
goog.testing.stacktrace.parseStackFrame_(frameStr) goog.testing.stacktrace.Frame
Parses one stack frame.
Arguments:
frameStr : string
The stack frame as string.
Returns: goog.testing.stacktrace.Frame  Stack frame object or null if the parsing failed.
code »
goog.testing.stacktrace.parse_(stack) !Array.<goog.testing.stacktrace.Frame>
Parses the browser's native stack trace.
Arguments:
stack : string
Stack trace.
Returns: !Array.<goog.testing.stacktrace.Frame>  Stack frames. The unrecognized frames will be nulled out.
code »
goog.testing.stacktrace.setDeobfuscateFunctionName(fn)
Sets function to deobfuscate function names.
Arguments:
fn : function(string): string
function to deobfuscate function names.
code »

Directory testing

File Reference