The goog.testing.PerformanceTimer.Task Class

goog.testing.PerformanceTimer.Task(test)

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.

test {function()}
Test function whose performance is to be measured.

.getSetUp()

returns {function()}
The set up function or null if none was specified.

.getTearDown()

returns {function()}
The tear down function or null if none was specified.

.getTest()

returns {function()}
The test function to time.

.withSetUp(setUp)

Specifies a set up function to be invoked before each invocation of the test function.

setUp {function()}
The set up function.
returns {goog.testing.PerformanceTimer.Task}
This task.

.withTearDown(tearDown)

Specifies a tear down function to be invoked after each invocation of the test function.

tearDown {function()}
The tear down function.
returns {goog.testing.PerformanceTimer.Task}
This task.