Aaron DEcker
3e91ac0889
add option to shallow clone args in call tracker
2015-12-22 00:27:51 -05:00
Gregg Van Hove
e2e2d1b343
Revert #908
...
- Run `afterEach` in reverse order declared as before
2015-12-03 16:02:32 -08:00
Andre Wiggins
c8b212f278
make DelayedFunctionScheduler update the mockDate
2015-11-20 03:45:57 -08:00
Gregg Van Hove
c1ab3c9cbe
Add support for returning run details for reporting randomness
...
[#92249258 ]
2015-11-04 12:05:29 -08:00
Gregg Van Hove
0f6a7f04b3
Merge branch 'issue#896' of https://github.com/himajasuman/jasmine into himajasuman-issue#896
2015-10-27 14:12:31 -07:00
Gregg Van Hove
728af5e556
Remove unused queueableFn arg from onException
...
Fixes #958
2015-10-27 12:24:32 -07:00
Gregg Van Hove
25d73515f3
Merge branch 'to-throw-error-unused-param' of https://github.com/FuzzySockets/jasmine into FuzzySockets-to-throw-error-unused-param
2015-10-27 12:21:42 -07:00
Gregg Van Hove
8e317d4026
Less verbose for the linter
2015-10-26 17:51:42 -07:00
Gregg Van Hove
ea4c44904d
IE 8 doesn't support defineProperty on non-DOM nodes, skip that kindof thing
2015-10-26 17:41:30 -07:00
Gregg Van Hove
a85c3a4da8
Check for descriptor
2015-10-26 17:03:45 -07:00
Richard Harrington
c2ae3b6b12
Remove unused parameter from toThrowError
2015-10-26 11:43:31 -04:00
Himaja
110cacab19
Added a throw error block in describe incase a function with arguments is passed in describe
2015-10-25 14:13:14 -04:00
guy-mograbi-at-gigaspaces
e7dbc75fc2
feat(spy): add option to respy
...
will not throw error if spyOn called on a spy
fixes #931
2015-10-24 08:37:33 +03:00
Stephan Bijzitter
a81466d9e7
Abort spying when the target cannot be spied on
2015-10-21 12:44:52 +02:00
Cody Sehl
e5c2572753
Change #xit so that it will output a more BDD-style pending message
2015-10-14 21:03:47 -06:00
Gregg Van Hove
141fd910f2
Use className instead of class when creating DOM elements
2015-10-06 09:10:22 -07:00
Gregg Van Hove
4221b2d2c4
Merge branch 'random-tests' of https://github.com/marcioj/jasmine into marcioj-random-tests
2015-10-04 14:03:17 -07:00
Gregg Van Hove
6ee7fd6ced
Merge branch 'toString_fallback' of https://github.com/myitcv/jasmine into myitcv-toString_fallback
2015-10-04 13:47:27 -07:00
James
80c4f87dd5
Fix circles/x from getting cut off on Mac/chrome
2015-09-27 17:01:08 +04:00
Marcio Junior
3f3fa484b2
Allow tests to run in random order
2015-09-26 14:53:08 -03:00
Paul Jolly
d0ad9b98cd
Use toString for objects if it has been overriden
2015-09-25 20:19:48 +01:00
Gregg Van Hove
375a6f9fda
Merge branch 'danielalexiuc-master'
...
- Fixes #924
- Fixes #917
2015-09-24 12:58:56 -07:00
danielalexiuc
c017f0000d
Postpone find() until it is needed
...
This is a fix for issue #917 .
It seems that 'symbols' was originally included as a performance optimization, to avoid repeated find() calls for '.jasmine-symbol-summary'. However this find() occasionally fails during initialize if the dom has not loaded completely.
This change will not affect performance, as symbols is still cached. However it improves upon the original code in that the find happens at a stage much later than initialize.
2015-09-16 11:52:05 +10:00
Gregg Van Hove
4097718b66
Merge pull request #906 from soycode/master
...
check for global before assigning
2015-09-03 13:38:21 -07:00
Martin Camacho
f3a7396845
afterEach behavior
2015-08-18 17:55:03 -04:00
soycode
850bee5492
check for global before assigning
2015-08-17 14:20:52 -07:00
Greg Chattin-McNichols and Gregg Van Hove
750a9aac6d
Merge pull request #869 from ljwall/jasmine
...
Fixes #855
2015-08-03 15:01:43 -07:00
Kevin
a6a1962924
add toHaveBeenCalledTimes matcher
...
Fix #853
2015-06-05 21:07:24 -07:00
Liam Wall
7bfc4c0a45
xdescribe marks pending, plus associated tests.
2015-05-29 17:21:28 +01:00
Gregg Van Hove
5061dd066c
Merge branch 'unique-css-classes' of https://github.com/prather-mcs/jasmine into prather-mcs-unique-css-classes
2015-05-18 14:29:03 -07:00
Dan Finnie
302e78f1df
Raise an error when jasmine.any() isn't passed a constructor
2015-05-17 02:21:26 -04:00
Matt Prather
42ad12ec52
Make the HtmlReport CSS classes "unique enough"
...
The only difference between this commit and the previous is that I have
used a difference scheme for naming Jasmine CSS classes.
Instead of appending "_jasmine-css" to all Jasmine CSS selectors, I have
now preprended "jasmine-" instead.
2015-05-14 14:23:06 -07:00
Matt Prather
c41fa7d156
Make the HtmlReport CSS classes "unique enough"
...
As described in Issue Report 844...
https://github.com/jasmine/jasmine/issues/844
...style rules in the app-being-tested may incidentally affect elements
in the Jasmine HTML Report container, as long as there is a chance that
the app-being-tested has CSS style rules for classes (or IDs) that
Jasmine uses.
This fix attempts to bring Jasmine to a state where each and every class
it uses always ends with "_jasmine-css" which should be unique enough to
ensure that CSS in the app-being-tested won't affect the Jasmine report,
because no app-being-tested is ever likely to use classes that end with
"_jasmine-css"
I'll be surpised if this commit is good enough as it is now, on the
first attempt to fix #844 , because of reasons I'll explain in either
the Issue or the Pull Request.
2015-05-13 18:55:44 -07:00
Gregg Van Hove
65a6decd6d
Fix ordering for suites with more than 11 direct children.
...
- When no specs were focused, they all had the same precedence, and
`sort`ing them caused some of the nodes to move around
Fixes #850
2015-05-13 14:45:11 -07:00
Matt Prather
f2bc9b5bd8
Remove the style rule for .running-alert CSS class
...
https://github.com/jasmine/jasmine/issues/847#issuecomment-101446573
2015-05-12 15:51:42 -07:00
Gregg Van Hove
f02824ae52
Merge branch 'remove-dead-css' of https://github.com/prather-mcs/jasmine into prather-mcs-remove-dead-css
2015-05-11 10:41:18 -07:00
Robert Neumann
225c7bdda3
Set the shared user context correctly when executing the top level suite
...
Fixes #846
2015-05-11 10:29:51 -07:00
Matt Prather
e855c898d1
Remove dead CSS class styles
...
I removed the `.showDetails` and `.summaryMenuItem` styles from the Sass
file because I believe that no HTML elements with those classes will
ever be generated by Jasmine and that they are dead code that someone
forgot to remove.
This is my first contribution to the Jasmine project and so I might be
doing something wrong, but I believe just this one change will propagate
to all the generated code when it is built, and that I should not be
altering any other code in any other place to accomplish the change I
intend.
This is related to Jasmine Issue 847:
https://github.com/jasmine/jasmine/issues/847
2015-05-10 16:58:07 -07:00
Gregg Van Hove
add841a1e9
A spec without a function provided should be pending not disabled
...
Fixes #840
2015-05-07 13:46:52 -07:00
Gregg Van Hove
ff029b37b5
Use instanceof when checking Error types in toThrowError
...
Fixes #819
2015-04-09 15:38:24 -07:00
Gregg Van Hove
1d366772b7
Don't throw if we're already handling an exception
...
[finish #91407284 ]
2015-03-30 08:19:06 -07:00
Gregg Van Hove and Nikhil Gajwani
d137b83c1c
Don't install the clock if the current timing functions aren't the originals
...
[finish #64116664 ] Fix #782
2015-03-27 10:14:03 -07:00
Gregg Van Hove
692c8716f0
Style disabled specs in the results list
2015-03-26 15:45:26 -07:00
Gregg Van Hove
965229bd03
Properly pass j$ to Any so it can use other jasmine stuff
...
Fixes #806
2015-03-18 13:12:40 -07:00
Steve Gravrock
2af9a45fb2
Correctly handle functions that are scheduled after the clock is uninstalled and reinstalled from within Clock#tick.
...
Fixes #790 .
2015-03-14 17:40:27 -07:00
slackersoft
eb1d98338a
Properly inject j$ into Suite
2015-03-06 11:43:57 -08:00
Gregg Van Hove and Molly Trombley-McCann
7693a4c959
Allow user to stop a specs execution when an expectation fails
...
[finish #1165916 ] #577
2015-03-05 15:28:00 -08:00
Gregg Van Hove
ce9600a3f6
Allow the clock to be installed for the duration of a single closure
...
[finish #67434180 ]
2015-03-04 17:41:49 -08:00
Gregg Van Hove
c77ff30263
Show the name of the constructor function when printing an any
...
- instead of a `toString` of the entire constructor
Fixes #796
2015-03-03 13:27:31 -08:00
Gregg Van Hove
dc652cfb05
Clean up some TreeProcessor stuff.
...
- Properly segment parents of segmented suites
2015-03-03 13:14:20 -08:00