johnjbarton
c36a005893
Support Error.stack in globalErrors.
...
See https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror#window.onerror
2019-01-03 16:14:23 -08:00
Gregg Van Hove
37dfe50d99
Stop treating objects with a nodeType as if they are DOM Nodes
...
- Fixes #1638
2018-12-17 17:10:53 -08:00
Sampo Kivistö
473f5cd359
Re-use attr variable
2018-11-04 10:44:54 +02:00
Sampo Kivistö
a81e9626df
Fixes issue where PhantomJS 2 and IE 10 - 11 crashed when reporting SVG element equality
2018-11-04 10:31:33 +02:00
Gregg Van Hove
5524207658
Add api docs for .not and .withContext
2018-10-24 16:49:31 -07:00
Gregg Van Hove
2d303a6e46
Merge common async/sync expectation stuff
2018-10-24 16:17:30 -07:00
Gregg Van Hove
1e47dcf2cc
Pull async matchers out to their own functions
...
- Makes AsyncExpectation closer to Expectation
2018-10-23 16:02:31 -07:00
Gregg Van Hove
ba1e8f8008
Implement withContext for async expectations too
2018-10-22 16:42:36 -07:00
Gregg Van Hove
a91db0dfc2
more rejected to -> rejected with
2018-10-22 16:08:57 -07:00
Gregg Van Hove
1d130036f4
Merge branch 'master' into expect-context
2018-10-22 14:55:20 -07:00
Gregg Van Hove
fe042fdf82
Use toBeRejectedWith instead of toBeRejectedTo
2018-10-22 11:18:56 -07:00
Gregg Van Hove
06854fe435
Merge branch 'toBeRejectedWith' of https://github.com/codymikol/jasmine into codymikol-toBeRejectedWith
2018-10-22 11:15:05 -07:00
Gregg Van Hove
3c47e71619
Also show tip for .not cases
2018-10-22 10:57:16 -07:00
Teagan Durtschi
7cbedcdda7
Add custom message for toBe() matcher when object equality check fails
2018-10-21 12:46:49 -04:00
Cody Mikol
3aa0115ae4
feat(toBeRejectedTo): implement toBeRejectedTo functionality
...
add functionality to determine whether a promise has been rejected to a
specific value via expectAsync
Fixes : #1595
2018-10-19 23:23:42 -04:00
Cody Mikol
591bf1144b
bugfix(assertAsync): add promiseLike support for angularJS promises
...
implement a promiseLike method so libraries using non-browser promise
implementations can still utilize assertAsync functionality.
Fixes : #1612
2018-10-18 21:28:32 -04:00
Matthias Jenny
705a6508d4
Add status marks to standalone
2018-09-26 21:10:20 -04:00
Gregg Van Hove
16fef04629
Merge branch 'patch-1' of https://github.com/nitobuendia/jasmine into nitobuendia-patch-1
...
- Merges #1601 from @nitobuendia
- Fixes #1594
2018-09-25 17:28:57 -07:00
Gregg Van Hove
d180c2026e
Merge branch 'master' of https://github.com/Havunen/jasmine into Havunen-master
...
- Merges #1599 from @Havunen
2018-09-25 17:14:49 -07:00
Gregg Van Hove
92d0882a32
Introduce a configuration object to Env deprecating old single use functions
...
[finishes #159158038 ]
2018-09-25 17:08:41 -07:00
Nito Buendia
d4f9b41eda
Print error message when available
...
With the current set up, error message is only printed out when error name is available.
There are situations where the ErrorEvent object does not have a `name` property, but the message is still relevant.
For more details see #1594
2018-09-11 23:25:28 +08:00
Sampo Kivistö
1019b045cd
Optimized clearTimeout cpu usage
2018-09-06 21:11:05 +03:00
Gregg Van Hove
afa18e554c
Correctly expost spyOnAllFunctions
...
- See #1581
2018-08-14 17:11:50 -07:00
Andrew Eisenberg
f62eb3b1a8
Add spyOnAllFunctions function
...
This function will spy on all writable and configurable functionss of
an object that is passed in. It can be used like this:
spyOnAllFunctions(obj);
This commit addresses https://github.com/jasmine/jasmine/issues/1421
2018-07-20 07:58:17 -07:00
Ilya Konstantinov
8c1b80daae
Improve Jasmine timeout error message
2018-06-18 17:36:43 -07:00
Steve Gravrock
ac07c9ea97
Simplified ExpectationFilterChain#modifyFailureMessage
2018-06-09 12:34:30 -07:00
Gregg Van Hove
e2895a92dc
Fix JSDoc naming for Env functions
...
- See #1565
2018-06-06 17:13:52 -07:00
Gregg Van Hove
03998c1b20
Add documentation for more public functions on Env
...
- Fixes #1565
2018-06-05 17:13:58 -07:00
Steve Gravrock
9472df0db4
Added a basic set of async matchers
...
- Fixes #1447
- Fixes #1547
2018-06-04 21:07:44 -07:00
Steve Gravrock
8a01e1f26c
.withContext() works with .not
2018-06-02 22:06:53 -07:00
Steve Gravrock
321f161ce5
Made ExpectationFilterChain immutable
2018-06-02 13:57:29 -07:00
Steve Gravrock
202a677637
ExpectationFilterChain WIP
2018-06-02 13:57:07 -07:00
Gregg Van Hove
8f7327cb4d
Properly cascade StopExecutionError's up the tree
...
- Fixes #1563
2018-05-30 17:32:14 -07:00
Gregg Van Hove
3636014917
Merge branch 'hide-grey-specs' of https://github.com/SamFare/jasmine into SamFare-hide-grey-specs
...
- Merges #1561 from @SamFare
2018-05-23 17:15:40 -07:00
SamFare
92d33c79c7
Implemented hiding of disabled specs
2018-05-22 13:30:33 +01:00
Steve Gravrock
e2897ce619
Added expect().withContext() to provide additional information in failure messages
2018-05-14 21:18:55 -07:00
Steve Gravrock
282c436463
Implemented matcher negation as a filter
2018-05-13 23:01:55 -07:00
Steve Gravrock
533bda5d24
Split Expectation#wrapCompare into several smaller functions
2018-05-13 22:48:58 -07:00
Steve Gravrock
e2d9eefccd
Line-break long expectation failure messages
...
This makes failures somewhat easier to read. We still preserve whitespace
within lines to make whitespace-only failures readable, e.g.
expect('foo bar').toEqual('foo bar'). See #296 .
2018-05-12 09:42:38 -07:00
Gregg Van Hove
ced2b114e4
Better detection of DOM Nodes for equality
...
- Also use JSDom if a real one isn't present to get some more coverage
there
- Fixes #1172
2018-05-04 18:01:08 -07:00
yinm
4d0b47ac4c
Fix typo from incimplete to incomplete
2018-05-03 17:46:49 +09:00
Fangzhou Li
fbcdbf5ab1
Allow omitting the name argument: createSpy(func)
2018-04-29 06:07:22 +08:00
Gregg Van Hove
7e14a97371
Explicitly pass in timing functions in mock clock integration specs
...
- This way we can make sure that clear stack always works no matter
how long the suite in the spec is
[fixes #153518103 ]
2018-04-23 17:25:11 -07:00
Gregg Van Hove
c440d13754
Use the same global for everything in Env
...
- No longer use `getGlobal` for clearStack and QueueRunner
2018-04-13 17:14:48 -07:00
Gregg Van Hove
a978f50f1d
name new global status stuff correctly in API docs
2018-04-02 17:20:39 -07:00
Steve Gravrock
74287c578c
Check for accidental global variable creation
2018-03-25 12:01:50 -07:00
Steve Gravrock
7f1cdc2d02
Fixed global variable leak
...
- Fixes #1534
2018-03-25 12:00:56 -07:00
Steve Gravrock
847a959b13
Merge branch 'handle-rejection' of https://github.com/johnjbarton/jasmine
...
- Merges #1521 from @johnjbarton
2018-03-24 19:49:58 -07:00
Steve Gravrock
05015a8b3e
Correctly format stack traces for errors with multiline messages
...
- Fixes #1526
2018-03-10 12:03:08 -08:00
Majid Razvi
11b8b59e03
Change message for extra elements at end of actual array. #1485
2018-03-10 00:05:07 -07:00