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
63ad879c12
added some specs to strengthen the coverage 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
Gunnar Ahlberg
a34077a8af
cover spy on on undefined method
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
Christopher Mitchell
b527ccd2fa
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-12-03 15:40:00 -08:00
Kevin Connor
cfa95fcf2c
create downloads dir if needed during build_standalone_distribution
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
c5ba032d28
Regenerate jasmine.js after adding ensured support.
2012-12-03 15:39:59 -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
John Firebaugh
c5c57247f8
Test that show that afterEach and after are not being called when a waitsFor times out.
2012-12-03 15:39:59 -08:00
John Firebaugh
9990eb7b6e
Test that afterEach is called after a failing spec.
2012-12-03 15:39:59 -08:00
John Firebaugh
b5b50182b2
Consolidate all waitsFor specs in the same describe block.
2012-12-03 15:39:59 -08:00
Oliver Caldwell
4d106c2b33
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-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
Davis W. Frank
6ac4b686a3
Move to an earlier RedCarpet to fix an incompatibility with Rocco. Regen of gh-pages.
2012-12-03 15:39:59 -08:00
Davis W. Frank & Rajan Agaskar
fd91433792
Version 1.3.1
2012-12-03 09:51:08 -08:00
Davis W. Frank & Rajan Agaskar
1f9004eaa3
Re-add pages submodule for release build script
...
- Use public github url
2012-12-03 09:47:48 -08:00
dev
58e6747930
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 09:38:57 -08:00
Davis W. Frank & Rajan Agaskar
4c083856be
Setup Travis build
2012-12-03 09:38:54 -08:00
Davis W. Frank & Rajan Agaskar
b94522193c
Use jasmine-gem for jasmine-core tests
2012-11-28 14:25:39 -08:00
Davis W. Frank & Rajan Agaskar
867de62699
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-11-27 13:47:02 -08:00
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