search

goog.testing.recordConstructor

Provided By

Same as goog.testing.recordFunction but the recorded function will have the same prototype and static fields as the original one. It can be used with constructors.

recordConstructor( ctor ) Function

Parameters
ctorFunction

The function to wrap and record.

Returns
Function

The wrapped function.