Davis W. Frank & Rajan Agaskar
cd3a0c854b
buildExpectationResult now returns a data object.
...
- Meant for passing to reporters.
2012-12-03 15:46:29 -08:00
Davis W. Frank & Rajan Agaskar
f840458b34
Encapsulate ExpectationResult
2012-12-03 15:46:29 -08:00
Davis W. Frank & Rajan Agaskar
dfed37531e
Add unit coverage for ExpectationResult
2012-12-03 15:46:29 -08:00
Davis W. Frank & Rajan Agaskar
8d94d0bfc5
Move ExpectationResult into its own file
2012-12-03 15:46:28 -08:00
Rajan Agaskar
3e5da57cf9
Remove jasmine.XmlHttpRequest
...
- Cruft left over from when jasmine offered an "include" function
2012-12-03 15:46:28 -08:00
Davis W. Frank & Rajan Agaskar
e2af08e0a6
Move most jasmine global usage into boot.
...
- thor build scripts broken for now.
2012-12-03 15:46:26 -08:00
Davis W. Frank & Rajan Agaskar
b6c3999c3a
Version 1.3.1
2012-12-03 15:40:01 -08:00
dev
e74f09df9c
Fixing test runner failures in IE 6/7/8 whereby HtmlReporter.js bails out as we're using for (reserved keyword) as object property name. Fix is just to quote the name which allows IE6/7/8 to run the tests. I think this might also fix Issue #303 on main repo ( https://github.com/pivotal/jasmine/issues/303 )
2012-12-03 15:40:00 -08:00
Davis W. Frank & Rajan Agaskar
86994b25db
Use jasmine-gem for jasmine-core tests
2012-12-03 15:40:00 -08:00
Davis W. Frank & Rajan Agaskar
9a7c76ea23
Releasing 1.3
...
- Allow users to set the pretty-printer's recursion depth
- When pretty-printing objects, don't include inherited properties.
- Change toBeCloseTo matcher to be more consistent
- Added toBeNaN matcher
- Add checkbox to test runner which toggles catching of exceptions duri
- Add config option which stops jasmine from capturing exceptions in a
2012-12-03 15:40:00 -08:00
Max Brunsfeld
e3a013ae99
Allow users to set the pretty-printer's recursion depth
...
Currently, jasmine's pretty printer traverses objects
to 40 levels of nesting. If an object is more deeply
nested than that, an exception is thrown. I find that
after a few levels of nesting, the output becomes
difficult to read. The process of serializing such
deep objects also sometimes crashes the browser or
causes a 'slow script' warning.
This commit exposes a 'MAX_PRETTY_PRINT_DEPTH' option.
It also causes the pretty printer to skip over
parts of an object that are nested to deeply by simply
printing out 'Object' or 'Array', rather than throwing
an exception.
2012-12-03 15:40:00 -08:00
Max Brunsfeld
ead9aa6d5a
When pretty-printing objects, don't include inherited properties.
...
When making assertions about complex objects, Jasmine's
failure message are sometimes gigantic and difficult
to read because the string representation of an object
contains all of the methods and properties in its
prototype chain. This commit causes the pretty printer
to only display on object's own properties.
2012-12-03 15:40:00 -08:00
Joost Elfering
d9467317a8
adding a check for the sticky regExp option supported by Firefox and accepted by the ES6. Note that the tests for this case are checking for the support of the sticky parameter. the logic is still tested by the other expect statements in browsers that do not support sticky but will never enter that block as creating a regExp with that flag is not allowed. Coverage is still good. See pivotal/jasmine#234
2012-12-03 15:40:00 -08:00
Joost Elfering
b95c43ab7c
resolving issue that was identified via pivotal/jasmine#199 where RegExp objects were not properly compared resulting in non-matching RegExp objects to always return true. a patch to jasmine.Env.equals_ adds an extra step for RexExp objects to be compared.
2012-12-03 15:40:00 -08:00
gvanhove
3685d3199c
less confusing messages for toHaveBeenCalledWith
2012-12-03 15:40:00 -08:00
James Cracknell
ac55e26870
Added toBeNaN matcher
2012-12-03 15:40:00 -08:00
PLOE09
acdc497361
Add JSDoc @return-tag to 'spyOn' and 'expect' functions support
...
code completion in Spket IDE
2012-12-03 15:40:00 -08:00
Alexey Androsov
ae9ddd74a2
update jsdoc for jasmine.Matchers.prototype.toThrow
...
expected argument is optional
2012-12-03 15:40:00 -08:00
Kevin Locke
26f0f6f213
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 >
2012-12-03 15:40:00 -08:00
rgould
bbc4c70c91
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.
2012-12-03 15:39:59 -08:00
Dave Burt
5e594946bb
Change toBeCloseTo matcher to be more consistent.
...
It now calculates and compares a difference, rather than rounding
two separate quantities and testing for their equality.
2012-12-03 15:39:59 -08:00
Alex Kwiatkowski
1771ec3c63
Add checkbox to test runner which toggles catching of exceptions during tests
2012-06-24 00:02:52 -04:00
Alex Kwiatkowski
2385acedd8
Add config option which stops jasmine from capturing exceptions in a test
2012-06-23 23:12:31 -04:00
ragaskar
b6f96bc121
Version 1.2.0
...
- Bump version
- Update pages submodule
2012-05-14 07:35:47 -07:00
ragaskar
fbbccf6ef7
Bump to 1.2.0.rc3
2012-04-04 09:48:00 -07:00
ragaskar
7ad75c13d4
Fix Matchers.any specs in Firefox
...
- Firefox adds whitespace to the resulting to_string function, necessary
to remove it for the match to occur correctly.
2012-04-04 08:41:59 -07:00
Davis W. Frank
d46ca4f506
correct for 1.2.0.rc2
2012-04-03 15:35:08 -07:00
Davis W. Frank
e22c4492a5
release prep for 1.2.0.rc1
2012-04-02 18:34:59 -07:00
Davis W. Frank
6e22754c10
1.2.0.rc1 commit
2012-04-01 13:19:24 -07:00
Davis W. Frank
ad78d0d0d8
Fixed bug where version for Ruby gem wasn't correct
2012-04-01 13:08:42 -07:00
Davis W. Frank
885832e920
Forgot to update Contribute to include new Thor tasks
2012-04-01 11:36:29 -07:00
Davis W. Frank
3a0ada034b
Move sources order to Ruby, which is where it's used.
2012-04-01 11:28:57 -07:00
Davis W. Frank
626da5a112
Re-implemented all development Rake tasks in Thor. Now actually tested.
...
Fixes:
* https://www.pivotaltracker.com/story/show/25484287 & https://github.com/pivotal/jasmine/issues/183
* https://www.pivotaltracker.com/story/show/25485401 & https://github.com/pivotal/jasmine/issues/189
* https://www.pivotaltracker.com/story/show/25485953 & https://github.com/pivotal/jasmine/issues/159
2012-04-01 10:47:29 -07:00
Davis W. Frank
4a1a2123a3
Fixes https://github.com/pivotal/jasmine-gem/issues/65 and https://www.pivotaltracker.com/story/show/24902023
2012-02-25 11:58:54 -08:00
Edward Tsech
551464b8d2
Remove double negative in docs (not.toNotContain, not.toNotEqual)
2012-01-04 16:21:54 +01:00
gvanhove
ac096f9911
convert objectContaining to use jasmineMatches and jasmineToString
2011-11-14 18:29:30 -08:00
gvanhove
67ec0af254
use jasmineMatches for equality testing of complicated matchers
2011-11-14 18:29:30 -08:00
gvanhove
4f2fcff15a
Use jasmineToString for printing out complicated matchers
2011-11-14 18:29:30 -08:00
gvanhove
7158fc2426
Rename hashContaining to objectContaining, since this is javascript. Also call the toString from prettyPrinter
2011-11-14 18:26:48 -08:00
gvanhove
992367dcbc
New matcher "hashContaining" similar to rspec's hash_including
2011-11-14 18:26:48 -08:00
Davis W. Frank & Sean Durham
ad4f48dcd4
Add new HTMLReporter
2011-11-04 14:43:19 -07:00
ragaskar
41f496001f
Version bump to 1.1.0
2011-09-10 13:51:11 -04:00
ragaskar
6b5956724b
Version bump to rc4
2011-09-01 07:26:07 -04:00
ragaskar
a075c75bce
Version bump to 1.1.0.rc3
2011-07-13 07:23:29 -04:00
ragaskar
a617b59e6a
Bump to rc2
2011-06-24 21:34:29 -04:00
ragaskar
67bbc98faa
Bump version
2011-06-24 21:22:19 -04:00
Davis W. Frank
620f7b6e4c
Updates to Pages; Updates to docs;
2011-06-23 19:02:17 -07:00
ragaskar
b722f416c7
Write out version.rb on dist build
2011-06-23 07:55:04 -04:00
Davis W. Frank
57e622fb2a
Fix to version structure for "release_candidate"
2011-06-20 18:17:24 -07:00
Davis W. Frank
c0664dd6aa
merge
2011-06-20 08:46:37 -07:00