Namespace webdriver.stacktrace
code »Classes
|
Global Functions
code »webdriver.stacktrace.format ( error ) ⇒ !(Error|goog.testing.JsUnitException)
Formats an error's stack trace.
!(Error|goog.testing.JsUnitException)
Parameters |
---|
|
Returns |
|
Gets the native stack trace if available otherwise follows the call chain.
The generated trace will exclude all frames up to and including the call to
this function.
Returns |
---|
|
code »webdriver.stacktrace.getStack_ ( error ) ⇒ string
Get an error's stack trace with the error string trimmed.
V8 prepends the string representation of an error to its stack trace.
This function trims the string so that the stack trace can be parsed
consistently with the other JS engines.
string
Parameters |
---|
|
Returns |
|
Parses a long firefox stack frame.
Parameters |
---|
|
Returns |
|
Parses one stack frame.
Parameters |
---|
|
Returns |
|
code »webdriver.stacktrace.parse_ ( stack ) ⇒ !Array
Parses an Error object's stack trace.
!Array
Parameters |
---|
|
Returns |
|
Global Properties
Representation of an anonymous frame in a stack trace generated by
goog.testing.stacktrace
.
goog.testing.stacktrace
.Constant for an anonymous frame.
Whether the current browser supports stack traces.
Whether the current environment supports the Error.captureStackTrace
function (as of 10/17/2012, only V8).
RegExp pattern for function call in a Chakra (IE) stack trace. This
expression allows for identifiers like 'Anonymous function', 'eval code',
and 'Global code'.
Regular expression for parsing on stack frame in Chakra (IE).
Pattern for a function call in a Closure stack trace. Creates three optional
submatches: the context, function name, and alias.
Regular expression for parsing a stack frame generated by Closure's
goog.testing.stacktrace
.
goog.testing.stacktrace
.Pattern for a matching the type on a fully-qualified name. Forms an
optional sub-match on the type. For example, in "foo.bar.baz", will match on
"foo.bar".
RegExp pattern for function call in the Firefox stack trace.
Creates a submatch for the function name.
RegExp pattern for function names in the Firefox stack trace.
Firefox has extended identifiers to deal with inner functions and anonymous
functions: https://bugzilla.mozilla.org/show_bug.cgi?id=433529#c9
Regular expression for parsing one stack frame in Firefox.
RegExp pattern for JavaScript identifiers. We don't support Unicode
identifiers defined in ECMAScript v3.
Maximum length of a string that can be matched with a RegExp on
Firefox 3x. Exceeding this approximate length will cause string.match
to exceed Firefox's stack quota. This situation can be encountered
when goog.globalEval is invoked with a long argument; such as
when loading a module.
RegExp pattern for an anonymous function call in an Opera stack frame.
Creates 2 (optional) submatches: the context object and function name.
RegExp pattern for a function call in an Opera stack frame.
Creates 3 (optional) submatches: the function name (if not anonymous),
the aliased context object and the function name (if anonymous).
Regular expression for parsing on stack frame in Opera 11.68+
Pattern for matching a fully qualified name. Will create two sub-matches:
the type (optional), and the name. For example, in "foo.bar.baz", will
match on ["foo.bar", "baz"].
Placeholder for an unparsable frame in a stack trace generated by
goog.testing.stacktrace
.
goog.testing.stacktrace
.