Class jasmine.Spec
Defined in: Spec.js.
Constructor Attributes | Constructor Name and Description |
---|---|
jasmine.Spec(env, suite, description)
Internal representation of a Jasmine specification, or test.
|
Method Attributes | Method Name and Description |
---|---|
addMatcherResult(result)
|
|
addMatchers(matchersPrototype)
|
|
addToQueue(block)
|
|
after(doAfter)
|
|
execute(onComplete)
|
|
expect(actual)
|
|
explodes()
|
|
fail(e)
|
|
finish(onComplete)
|
|
log()
All parameters are pretty-printed and concatenated together, then written to the spec's output.
|
|
results()
|
|
runs(func)
|
|
spyOn(obj, methodName, ignoreMethodDoesntExist)
|
|
waits(timeout)
|
|
waitsFor(timeout, latchFunction, timeoutMessage)
|
Class Detail
jasmine.Spec(env, suite, description)
Internal representation of a Jasmine specification, or test.
- Parameters:
- {jasmine.Env} env
- {jasmine.Suite} suite
- {String} description
Method Detail
addBeforesAndAftersToQueue()
addMatcherResult(result)
- Parameters:
- {jasmine.ExpectationResult} result
addMatchers(matchersPrototype)
- Parameters:
- matchersPrototype
addToQueue(block)
- Parameters:
- block
after(doAfter)
- Parameters:
- doAfter
execute(onComplete)
- Parameters:
- onComplete
expect(actual)
- Parameters:
- actual
explodes()
fail(e)
- Parameters:
- e
finish(onComplete)
- Parameters:
- onComplete
finishCallback()
getFullName()
getMatchersClass_()
log()
All parameters are pretty-printed and concatenated together, then written to the spec's output.
Be careful not to leave calls to
jasmine.log
in production code.
removeAllSpies()
results()
runs(func)
- Parameters:
- func
spyOn(obj, methodName, ignoreMethodDoesntExist)
- Parameters:
- obj
- methodName
- ignoreMethodDoesntExist
waits(timeout)
- Parameters:
- timeout
waitsFor(timeout, latchFunction, timeoutMessage)
- Parameters:
- timeout
- latchFunction
- timeoutMessage