Class jasmine.WaitsForBlock
Extends
jasmine.Block.
Defined in: WaitsForBlock.js.
Constructor Attributes | Constructor Name and Description |
---|---|
jasmine.WaitsForBlock(env, timeout, latchFunction, message, spec)
A block which waits for some condition to become true, with timeout.
|
Method Attributes | Method Name and Description |
---|---|
execute(onComplete)
|
Class Detail
jasmine.WaitsForBlock(env, timeout, latchFunction, message, spec)
A block which waits for some condition to become true, with timeout.
- Parameters:
- {jasmine.Env} env
- The Jasmine environment.
- {Number} timeout
- The maximum time in milliseconds to wait for the condition to become true.
- {Function} latchFunction
- A function which returns true when the desired condition has been met.
- {String} message
- The message to display if the desired condition hasn't been met within the given time period.
- {jasmine.Spec} spec
- The Jasmine spec.
Method Detail
execute(onComplete)
- Parameters:
- onComplete