goog.testing.ContinuationTestCase.Step
Classgoog.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
}
ref
{Function
}
opt_scope
{Object
=}
.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
}
duration
{number
}
.waiting
{boolean
}Whether the step is currently waiting for a condition to continue. All new steps begin in wait state.