The goog.testing.ContinuationTestCase.Step Class

goog.testing.ContinuationTestCase.Step
> goog.testing.TestCase.Test

goog.testing.ContinuationTestCase.Step(name, ref, opt_scope)

Constructs a single step in a larger continuation test. Each step is similar to a typical TestCase test, except it may wait for an event or timeout to occur before running the test function.

name {string}
The test name.
ref {Function}
The test function to run.
opt_scope {Object=}
The object context to run the test in.

.clearTimeout()

Clears the current timeout if it is active.

.execute()

Inherited from goog.testing.TestCase.Test .

Executes the test function.

.setTimeout(func, duration)

Starts a timeout for this step. Each step may have only one timeout active at a time.

func {Function}
The function to call after the timeout.
duration {number}
The number of milliseconds to wait before invoking the function.

.waiting {boolean}

Whether the step is currently waiting for a condition to continue. All new steps begin in wait state.