testing.PerformanceTimer.Task Extends
A task for the performance timer to measure. Callers can specify optional setUp and tearDown methods to control state before and after each run of the test function.

Inheritance

Constructor

goog.testing.PerformanceTimer.Task(test)

Parameters

test : goog.testing.PerformanceTimer.TestFunction
Test function whose performance is to be measured.

Instance Methods

Public Protected Private
getSetUp() goog.testing.PerformanceTimer.TestFunction
No description.
Returns: goog.testing.PerformanceTimer.TestFunction  The set up function or the default no-op function if none was specified.
code »
getTearDown() goog.testing.PerformanceTimer.TestFunction
No description.
Returns: goog.testing.PerformanceTimer.TestFunction  The tear down function or the default no-op function if none was specified.
code »
getTest() goog.testing.PerformanceTimer.TestFunction
No description.
Returns: goog.testing.PerformanceTimer.TestFunction  The test function to time.
code »
setUp_()
An optional set up function to run before each invocation of the test function.
code »
tearDown_()
An optional tear down function to run after each invocation of the test function.
code »
test_()
The test function to time.
code »
withSetUp(setUp) !goog.testing.PerformanceTimer.Task
Specifies a set up function to be invoked before each invocation of the test function.
Arguments:
setUp : goog.testing.PerformanceTimer.TestFunction
The set up function.
Returns: !goog.testing.PerformanceTimer.Task  This task.
code »
withTearDown(tearDown) !goog.testing.PerformanceTimer.Task
Specifies a tear down function to be invoked after each invocation of the test function.
Arguments:
tearDown : goog.testing.PerformanceTimer.TestFunction
The tear down function.
Returns: !goog.testing.PerformanceTimer.Task  This task.
code »

Package testing.PerformanceTimer

Package Reference