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
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
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
60ea562560
Reuse an 'it' block.
2009-11-13 13:21:40 -05:00
Christian Williams
b0326d3078
Reorganizing spy matcher specs.
2009-11-13 12:30:22 -05:00
Christian Williams
752b91f118
Reorganizing spy matcher specs.
2009-11-13 12:21:34 -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
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
ragaskar
827fd1da0e
Pass sensible arguments in ExpectationResults
2009-10-29 20:33:47 -07:00
Ryan Dy & Rajan Agaskar
b67d2a265d
major matcher refactor
2009-10-29 17:03:24 -07:00
ragaskar
73c0d57c94
Tuning to prevent stack overflows in FF
2009-10-05 22:36:10 -07:00
ragaskar
2588368231
Deprecate getResults() (use results()). Add some unit test coverage for jasmine.Spec. Add some unit test coverage for JsApiReporterSpec.
2009-09-28 11:13:44 -07:00
ragaskar
ba5b4ab166
Fix compatibility with the ruby contrib runner
2009-08-26 15:55:08 -07:00