Rajan Agaskar
74cdc5a04f
Merge pull request #290 from maxbrunsfeld/smaller-pretty-print2
...
smaller, more configurable pretty-printing of objects
2012-10-29 09:32:40 -07:00
Max Brunsfeld
ddbee65aa8
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-10-28 12:27:26 -07:00
Max Brunsfeld
beeb872a82
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-10-28 12:27:26 -07:00
Rajan Agaskar
dbcb0b7983
Merge pull request #234 from yopefonic/master
...
comparison for regExp that compares pattern and modifiers
2012-10-26 19:51:47 -07:00
Joost Elfering
c8436d1d44
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-10-27 01:51:19 +01:00
Joost Elfering
639f757f6f
added some specs to strengthen the coverage pivotal/jasmine#234
2012-10-27 01:50:34 +01:00
Joost Elfering
d65bdc7e59
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-10-27 01:50:34 +01:00
Rajan Agaskar
a1ed56741b
Merge pull request #193 from slackersoft/spy_called_with_messages
...
less confusing messages for toHaveBeenCalledWith
2012-10-05 17:53:11 -07:00
Rajan Agaskar
7473b455dc
Merge pull request #225 from gunnarahlberg/master
...
spec that to spy on an undefined method throws exception
2012-10-05 17:44:00 -07:00
Rajan Agaskar
b6fb23b069
Merge pull request #254 from jcracknell/nan-matcher
...
Added toBeNaN matcher
2012-10-05 17:31:36 -07:00
Rajan Agaskar
386e83b53f
Merge pull request #280 from ronaldploeger/master
...
JSDoc @return-tag to 'spyOn' and 'expect' functions
2012-10-05 17:10:51 -07:00
PLOE09
f2b25f1780
Add JSDoc @return-tag to 'spyOn' and 'expect' functions support
...
code completion in Spket IDE
2012-09-14 16:36:32 +02:00
Davis W. Frank
5ca2888301
Merge pull request #242 from ChrisTM/master
...
Fix swapped template values in build_standalone_runner.rb.
2012-09-02 22:58:08 -07:00
Davis W. Frank
147cb36760
Merge pull request #269 from kconnor/master
...
create downloads dir if needed during build_standalone_distribution
2012-09-02 17:42:11 -07:00
Davis W. Frank
107463ad57
Merge pull request #251 from doochik/patch-1
...
update jsdoc for jasmine.Matchers.prototype.toThrow
2012-09-02 17:40:51 -07:00
Davis W. Frank
39a55d8f10
Merge pull request #257 from kevinoid/no-window-or-exports
...
Don't assume exports is defined when window is undefined
2012-09-02 17:40:16 -07:00
Rajan Agaskar
4b48dc1069
Merge pull request #260 from rgould/master
...
Guarantee that afterEach and after blocks are always run
2012-09-01 13:05:41 -07:00
Rajan Agaskar
921f52862f
Merge pull request #270 from Wolfy87/patch-1
...
Wrapped the reserved word, "for", in quotes.
2012-08-15 14:17:29 -07:00
Oliver Caldwell
ea2ffb7b01
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.
2012-08-15 21:44:28 +02:00
Kevin Connor
54fbc48eb2
create downloads dir if needed during build_standalone_distribution
2012-08-15 12:41:09 -07:00
Davis W. Frank
06c900ab20
Merge pull request #264 from dburt/master
...
Change toBeCloseTo matcher to be more consistent
2012-08-12 09:23:15 -07:00
Davis W. Frank
3e070e9db6
Move to an earlier RedCarpet to fix an incompatibility with Rocco. Regen of gh-pages.
2012-08-11 16:53:08 -07:00
Dave Burt
7e04571ec0
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-07-31 15:03:55 +10:00
rgould
ddd48f2c88
Regenerate jasmine.js after adding ensured support.
2012-07-24 18:54:36 -04:00
rgould
1c2e50d244
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-07-24 18:45:30 -04:00
rgould
d2d60a798d
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.
2012-07-24 16:36:28 -04:00
Kevin Locke
442f3bf872
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-07-19 14:10:39 -06:00
James Cracknell
f910df00bb
Added toBeNaN matcher
2012-07-12 20:04:14 -06:00
Alexey Androsov
500b856cfa
update jsdoc for jasmine.Matchers.prototype.toThrow
...
expected argument is optional
2012-07-10 15:12:32 +04:00
Rajan Agaskar
dad4865fbf
Merge pull request #221 from rupurt/no_try_catch_multi_commit
...
No try catch multi commit
2012-06-28 09:56:39 -07: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
Christopher Mitchell
4c28bef387
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.
2012-06-16 17:49:43 -07:00
Davis W. Frank
7bbcf51d45
Removed Frank for GHPages generation. Now using Rocco and a Thor task to build it
2012-05-27 13:16:20 -07:00
ragaskar
b6f96bc121
Version 1.2.0
...
- Bump version
- Update pages submodule
2012-05-14 07:35:47 -07:00
Rajan Agaskar
feebfbba68
Update README.markdown
2012-05-09 09:51:29 -07:00
Rajan Agaskar
8e4bd86865
Merge pull request #220 from moonmaster9000/patch-1
...
update the copyright and remove the blank "what's here" section.
2012-05-02 10:51:26 -07:00
Gunnar Ahlberg
4f218f7d6a
cover spy on on undefined method
2012-05-02 14:11:22 +02:00
Matt Parker
bb1a4428db
update the copyright and remove the blank "what's here" section.
2012-04-13 23:30:12 -03:00
Davis W. Frank
079740ca2c
Make Thor tasks more visible; Init Pages submodule when not present if about to run tests that require it
2012-04-09 22:21:09 -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
ee7af4496c
Pages updated for 1.2.0.rc1
2012-04-02 18:37:35 -07:00
Davis W. Frank
e22c4492a5
release prep for 1.2.0.rc1
2012-04-02 18:34:59 -07:00
Davis W. Frank
d63836afb4
Fix for copying built Github pages to the submodule properly
2012-04-02 18:33:38 -07:00
Davis W. Frank
06f1edc197
Merge branch 'master' of github.com:pivotal/jasmine
2012-04-01 17:03:06 -07:00
Davis W. Frank
3a6b233a2e
Merge pull request #209 from mark-rushakoff/ruby187fix
...
fix JasmineDev#has_node? for Ruby 1.8.7
2012-04-01 17:02:20 -07:00
Mark Rushakoff
d15964b7dc
fix JasmineDev#has_node? for Ruby 1.8.7
2012-04-01 15:44:36 -07:00
Davis W. Frank
6e22754c10
1.2.0.rc1 commit
2012-04-01 13:19:24 -07:00