Consolidate all waitsFor specs in the same describe block.
Test that afterEach is called after a failing spec.
Test that show that afterEach and after are not being called when a waitsFor times out.
less confusing messages for toHaveBeenCalledWith
cover spy on on undefined method
Fix swapped template values in build_standalone_runner.rb.

`example_source_tags` and `example_spec_tags` each returned what the other
should have returned. I noticed this bug because it made the comments in
SpecRunner.html about where to include spec and source files incongruous with
the example tags that followed.
update jsdoc for jasmine.Matchers.prototype.toThrow
expected argument is optional
Added toBeNaN matcher
Don't assume exports is defined when window is undefined

The current code makes the assumption that if window is undefined it is
being run in an environment which supports the CommonJS Modules spec.
This is not the case when Jasmine is being run in rhino or SpiderMonkey
(smjs) without EnvJS.

The fix is simply to check that exports is an object.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
Merge remote-tracking branch 'bigfix/after_waitsFor'

* bigfix/after_waitsFor:
  Test that show that afterEach and after are not being called when a waitsFor times out.
  Test that afterEach is called after a failing spec.
  Consolidate all waitsFor specs in the same describe block.
Add 'ensured' blocks to the queue.

This blocks will be run even when a preceeding block sets the abort
flag. This is so that we can support afterEach calls running when the
spec fails due to a timeout.
Regenerate jasmine.js after adding ensured support.
create downloads dir if needed during build_standalone_distribution
Wrapped the reserved word, "for", in quotes.

This stops it throwing errors in IE and other browsers. I think the newer Firefox and Chrome versions are the only browsers to not die when running it.
Merge pull request #270 from Wolfy87/patch-1

Wrapped the reserved word, "for", in quotes.
Merge pull request #260 from rgould/master

Guarantee that afterEach and after blocks are always run
Merge pull request #257 from kevinoid/no-window-or-exports

Don't assume exports is defined when window is undefined
Merge pull request #251 from doochik/patch-1

update jsdoc for jasmine.Matchers.prototype.toThrow
Merge pull request #269 from kconnor/master

create downloads dir if needed during build_standalone_distribution
Merge pull request #242 from ChrisTM/master

Fix swapped template values in build_standalone_runner.rb.