Lee Byrd & Christian Williams
e30b99e7b3
JsApiReporter reports nested suites correctly.
...
Runner#topLevelSuites() returns only top level suites.
Suite#specs(), Suite#suites(), and Suite#children() return immediate children.
2010-06-22 10:18:22 -07:00
Pivotal
c187adc096
Version bump to 0.10.4
2010-06-05 10:44:54 -04:00
Pivotal
462b50e84e
Replace unshift with splice (unshift not IE-safe)
2010-06-05 10:12:16 -04:00
Christian Williams
03d7bfb7d4
Oops, shouldn't onComplete there.
2010-06-04 14:48:48 -04:00
Christian Williams
ab7678e713
Apply patch from Eric Pabst (May 18, 2010):
...
Replaced call to self.spec._next() with onComplete() when the test times out.
This is because there is no such function as _next(), and onComplete() seems to
do the right thing.
2010-06-04 14:45:42 -04:00
Christian Williams
a2041e90a6
Multiple befores/afters in a single describe should be executed in order (as declared for befores, in reverse for afters).
2010-06-04 14:41:16 -04:00
Christian Williams
ed49104fad
Jasmine should recover gracefully when there are errors in describe functions.
2010-06-04 14:14:31 -04:00
bigfix
5cfb019b6b
Documentation and example fixes
2010-04-20 07:26:04 -07:00
Christian Williams & Ian Fisher
9f8d18b6b7
Version bump to 0.10.3
2010-04-01 16:03:52 -07:00
Christian Williams & Ian Fisher
2212d755c3
Merge commit '5f10b2e623c6c21d1b692bde4a8a5c6d4015cd44'
2010-04-01 15:57:24 -07:00
Christian Williams & Ian Fisher
5f10b2e623
Added Env#versionString; nicer styling in TrivialReporter; hide passed and skipped tests by default, but allow them to be displayed.
2010-04-01 15:56:29 -07:00
Christian Williams
1469f83262
Deprecate jasmine.include().
2010-03-24 13:53:34 -07:00
Christian Williams
d6353a3db2
Typo.
2010-03-24 13:43:47 -07:00
ragaskar
9a5b46fd99
Version bump to 0.10.2
2010-03-18 20:35:36 -07:00
ragaskar
bf938ffc50
Correct number matching in equals_
2010-03-18 20:32:40 -07:00
ragaskar
c85079e9d0
Handle string comparisons correctly with equals_
2010-03-17 08:19:29 -07:00
Christian Williams
9830952461
Evaluate custom equality testers before any others.
2010-03-08 21:56:04 -08:00
Christian Williams
e9a2b0dcdb
Better deprecation messages.
2010-03-05 22:40:47 -05:00
Christian Williams
23d5c7180b
Keep jasmine.Matchers.pp() but throw an error message.
2010-03-05 22:36:42 -05:00
Christian Williams
a661e77345
Remove jasmine.Matchers.pp(), use jasmine.pp() instead.
2010-03-05 22:34:37 -05:00
Christian Williams
564b9a0c3e
Cleanup.
2010-03-05 22:11:11 -05:00
Christian Williams
49f295690a
Old-style custom matchers (those which call this.report()) are not supported with the ".not" matcher negation syntax.
2010-03-01 23:02:59 -05:00
Christian Williams
6574dcc728
Merge branch 'master' into dot-not
2010-02-27 11:57:15 -05:00
Josh Susser
80d67d49a0
Bump version to 0.10.1
2010-02-24 19:45:30 -08:00
Josh Susser
6ca766d5ea
Update isArray_ function and add test coverage
2010-02-24 19:35:32 -08:00
Josh Susser
5e3eb884ca
Fix message bug with wasCalledWith. Throw on bad arguments to createSpyObj
2010-02-24 19:27:43 -08:00
Christian Williams
bef9867b61
Merge branch 'master' of git@github.com:pivotal/jasmine
2009-12-25 11:41:07 -05:00
Christian Williams
d16e2b7992
Add partial support for not -- e.g. expect(xxx).not.toEqual(yyy). Old-style custom matchers not yet supported.
2009-12-24 17:01:13 -05:00
Christian Williams
20a00d517e
Refactor toThrow matcher.
2009-12-24 13:41:28 -05:00
Christian Williams
9f247eb278
Custom matchers may now work like regular matchers -- just return a boolean, don't call this.report(). The old style still works but is deprecated.
2009-12-24 12:15:18 -05:00
Fabio M. Costa
dd5e97bf14
with this fix jasmine runs on ie6
...
(cherry picked from commit 33a3b769e2b28aab01c1d6ee216c55e12539f417)
2009-12-23 07:14:47 -08:00
Nathan Wilmes & Davis W. Frank
d90852336f
Added wasNotCalledWith matcher, used argsForCall a bit less
2009-12-21 11:45:49 -08:00
Christian Williams
40ff1cb4c8
Merge branch 'safe-undefined' of git@github.com:pivotal/jasmine
2009-11-27 15:30:56 -05:00
Christian Williams
23c5289b7e
Fix regexp pretty printing for Chrome.
2009-11-27 15:27:52 -05:00
Christian Williams
7653107f0c
Use jasmine.undefined for all comparisons to the undefined value, since undefined itself may be redefined elsewhere
...
in app code. Thanks to Charlie Meyer at UIUC for the suggestion.
2009-11-26 11:12:06 -05:00
Joseph Palermo
701ee719e6
Fix loop so it works with extra methods added to Array
2009-11-22 22:18:53 -08:00
Christian Williams
1a53838d97
Wrap base matchers from jasmine.Matcher prototype automatically at env instantiation time rather than manually.
2009-11-13 14:32:08 -05:00
Christian Williams
2fc78a0fe2
Moved last message formatting functions to be set up by matcher test function.
2009-11-13 13:34:10 -05:00
Christian Williams
b0ae461139
Nicer pretty printing of spy objects.
2009-11-12 16:49:48 -05:00
Christian Williams
5a8a050c46
Removed toMatch and toNotMatch's message functions, now sufficiently handled by the default message builder.
2009-11-12 15:43:49 -05:00
Christian Williams
7be8247b2f
Fix pretty printing of RegExp objects.
2009-11-12 15:37:52 -05:00
Christian Williams
98e86817bf
Fix wasCalledWith matcher.
2009-11-12 15:03:55 -05:00
Christian Williams
3b92b9bb79
Remove message function from matchers where a formulaic message is good enough.
2009-11-12 14:36:58 -05:00
Christian Williams
1b3545c82a
Remove 'actual' param from matchers test and message functions. Use this.actual instead. This way, the signature of the test function matches how the matcher is called from a spec.
...
Spy matchers now throw an exception when called with non-spies, rather than returning false. This makes the message function simpler, and will work better with future dot-not support.
Added better specs for error conditions on spy matchers.
2009-11-12 12:47:44 -05:00
Christian Williams
2a5754600a
Add documentation for all non-private functions.
2009-11-10 17:32:29 -05:00
Christian Williams
1982fb51c9
Generate docs from source files, not lib.
2009-11-10 14:28:47 -05:00
Christian Williams
0810e4a01c
Rename UPDATE_INTERVAL to DEFAULT_UPDATE_INTERVAL.
2009-11-09 17:51:03 -05:00
Christian Williams
0f610b03d2
Merge branch 'master' of git@github.com:pivotal/jasmine
2009-11-09 17:42:21 -05:00
ragaskar
8feb285ca8
Ruby runner changes. Users of previous versions with Rake tasks that make use of additional runner options (helpers, etc) may be broken.
2009-10-31 21:47:11 -07:00
ragaskar
f9d73761bb
Restore Matcher prototype methods for IDE joy
2009-10-30 19:29:19 -07:00