Rajan Agaskar and Sheel Choksi
a2debf60b6
Use jasmine.addMatchers instead of reaching through jasmine.Expectation [finishes #59518946 ]
2013-10-29 18:35:17 -07:00
Sheel Choksi
8585ef69a5
Update clock not installed message to reflect current boot installation process
2013-10-29 17:33:51 -07:00
Sheel Choksi
cb5aea1fcf
Fix builds by working around browser timing functions not being successfully overridden
2013-10-29 17:32:04 -07:00
Sheel Choksi
40e3020fdc
Build distribution for 2.0.0-rc5 and associated standalone distribution
2013-10-29 14:03:02 -07:00
Sheel Choksi
a03fad8911
Move built console.js into lib and include in standalone distribution
...
[finishes #59679110 ]
2013-10-29 14:03:01 -07:00
Sheel Choksi
a3424ea265
Remove addCustomEqualityTester and addMatchers from global
...
These functions are available on the jasmine namespace
2013-10-24 14:00:05 -07:00
Sheel Choksi
d06da150de
Stop passing in queryString to HTMLReporter, it is unused
2013-10-23 11:06:42 -07:00
Davis W. Frank
5aaafed4d8
Move clock from global to jasmine; provide a function to access the clock.
2013-10-10 16:24:58 -07:00
Davis W. Frank
c28c124f58
removed addMatchers from the global. This should have been in previous commit
2013-10-10 14:11:44 -07:00
Davis W. Frank
f0a1adb61c
Continuing boot change with docs
2013-10-10 12:00:46 -07:00
Davis W. Frank
5ff2aecab8
Moving a documented-up boot.js from the website back into core
2013-10-10 11:59:59 -07:00
Davis W. Frank
8ca8197b4c
Make exposure of addMatchers and addCustomEqualityTesters be on jasmine instead of inconsistent.
2013-10-10 11:32:21 -07:00
slackersoft
6641d64305
Make addCustomEqualityTester available on jasmine global
...
- User shouldn't have to `jasmine.getEnv()` to add one
[#54582648 ]
2013-10-06 11:32:38 -07:00
slackersoft
7c1fcd7bb5
Regenerate jasmine.js for QueueRunner fix
2013-10-06 11:32:19 -07:00
slackersoft
e91d0341a4
Revert "Make addCustomEqualityTester available on jasmine global"
...
Oops, this made it on global object, not `jasmnie`
This reverts commit 144ff174f6 .
2013-10-06 11:11:46 -07:00
slackersoft
144ff174f6
Make addCustomEqualityTester available on jasmine global
...
- User shouldn't have to `jasmine.getEnv()` to add one
2013-10-06 11:05:35 -07:00
Gregg Van Hove and Tim Jarratt
749c15fe07
Bump version to rc3 in jasmine.js
2013-10-03 15:28:26 -07:00
Gregg Van Hove and Tim Jarratt
7e071547f5
Custom matchers fail to behave as expected
...
If they return false, that should be respected.
Submitted via @tjgrathwell
[Finish #58184156 ]
close #434
2013-10-03 15:13:27 -07:00
Gregg Van Hove and Tim Jarratt
18e1ab93ea
Release for rc3
2013-10-03 09:55:36 -07:00
Davis W. Frank
0c4113e167
Quick fix - Spec needs j$ at execute time
2013-10-02 22:45:33 -07:00
Gregg Van Hove and Tim Jarratt
fc258b3d36
Make it easy to copy the title of failing specs
...
[finish #58121820 ]
2013-10-02 15:14:41 -07:00
Gregg Van Hove and Tim Jarratt
cb8ba74937
Don't add periods to the full name of a spec
...
- Breaks links for spec filters
- Looks strange if users add their own
[fix #58043244 ] fix #427
2013-10-01 16:28:33 -07:00
Sheel Choksi
da33c7823e
Add missing var in front of j$ to avoid polluting global namespace
...
Users should only have 'jasmine' in global namespace, j$ should be
fully internal unless developing for jasmine
As brought up by Morten Maxild
2013-09-29 14:46:55 -07:00
Sheel Choksi
efc384c6d6
Allow Env to take optional spec/suite ids when asked to execute
2013-09-17 19:55:49 -07:00
Sheel Choksi
d60786a06c
More clearly differentiate between spec and suite ids
2013-09-17 19:55:48 -07:00
Sheel Choksi
66010d01ec
Give reporting symbols a little bit more height
...
Ensures they don't appear cut off when in the last row
2013-09-16 21:05:24 -07:00
Travis Grathwell
79a75f5bdb
HTMLReporter symbols are inline-block rather than floated
...
On a very large test suite (8000 specs), a significant amount
of time is spent just drawing the spec dots. Some sort of
worse-than-linear artifact that summons itself only when you
have 8000 floated elements trying to hang out together.
This performance penalty is not seen with inline-block.
In Chrome 29:
Floated dots: 16.795s
Inline-block dots: 2.774s
Setting the dots to 'display: none;' takes about the same time
as the inline-block figure, so this is probably a low enough bound
(no need for chunked rendering or who knows what).
2013-09-10 19:46:51 -07:00
Sheel Choksi
7158e048a6
Update Jasmine CSS build process
...
- Update compass configuration to build jasmine.scss into lib
- Remove src/html/jasmine.css (since jasmine.scss builds directly into
lib now)
- Bump lib/jasmine-core/jasmine.css to be latest from scss
2013-09-09 21:41:24 -07:00
Sheel Choksi
8ac085c103
Use jasmine.DEFAULT_TIMEOUT_INTERVAL for async timeout
...
Allows a user to specify their desired timeout interval for async specs
and change it on a per spec basis (for particularly slow specs, for example).
As pointed out by @Eric-Wright in #422 . [finishes #55996798 ]
2013-09-08 21:41:45 -07:00
Sheel Choksi
03dfea967c
Remove unused jasmine.DEFAULT_UPDATE_INTERVAL
2013-09-08 14:18:34 -07:00
Sheel Choksi
f463e1f7aa
Consistent 'this' between befores/it/afters
...
Change the 'this' user functions are called with to be an empty object
instead of the QueueRunner so that if the user puts properties on it,
they won't conflict.
Also, changes async specs to be called with a proper 'this', as pointed
out by @Eric-Wright in #419 and #420 .
[finishes #56030080 ]
2013-09-07 18:28:03 -07:00
Sheel Choksi
4bff199c2a
Rename a spy's callReturn and callThrow
...
.and.callReturn is now .and.returnValue
.and.callThrow is now .and.throwError
[finishes #56281634 ]
2013-09-06 21:55:14 -07:00
Sheel Choksi
e3f0389ac2
Change andThrow to always throw an Error
...
If an error is passed in, it is thrown, otherwise the argument passed
in is wrapped in an Error
[finishes #50607615 ][closes #372 ]
2013-09-05 23:05:45 -07:00
Sheel Choksi
a442acb8aa
Mock Clock now correctly schedules delayed functions during a 'tick'
2013-09-02 18:50:17 -07:00
Davis W. Frank
ba55cb5e38
Mock clock now less intrusive, replacing global timer funcions only when clock is installed. [ Fixes #54168708 ]
2013-08-27 22:46:01 -07:00
Sheel Choksi
5ba6e51e1c
Restore custom failure messages for toHaveBeenCalledWith
...
As pointed out by @tjgrathwell
2013-08-26 23:24:43 -07:00
Sheel Choksi
0f42f2709a
Update PrettyPrinter to better check for an Object
...
Includes test case to fix FF as suggested by @ondras
Fixes #409
2013-08-03 11:49:20 -07:00
Davis W. Frank and Sheel Choksi
be0e6222c5
Bumping to 2.0.0-rc2 due to an old, yanked 2.0.0-rc1
2013-07-28 17:55:29 -07:00
Davis W. Frank and Sheel Choksi
8c696ffc71
Release prep for 2.0.0-rc1
2013-07-28 17:31:24 -07:00
Davis W. Frank and Sheel Choksi
3dda67fe60
Building jasmine.js with last change. I'm sorry.
2013-07-28 17:03:12 -07:00
JR Boyens
edd7e3932b
Newer Firefoxen dislike large callback depths; tweak down to keep maximum recursion errors at bay
2013-07-26 17:26:17 -07:00
JR Boyens
0420e295f4
Resolve node issues
2013-07-26 16:44:48 -07:00
JR Boyens
00f88edc04
[Finishes #52731407 ] Escape special regex characters from the spec param
2013-07-26 11:28:15 -07:00
JR Boyens
98fa58ee49
Async timeout support
2013-07-26 11:27:40 -07:00
Colin O'Byrne and JR Boyens
984074ec95
small QueueRunner refactors
2013-07-24 17:38:26 -07:00
Colin O'Byrne and JR Boyens
6bb8a91301
inline the specConstructor
2013-07-24 15:20:15 -07:00
Colin O'Byrne and JR Boyens
97ce396008
Build distribution; fix test in FF
2013-07-24 14:41:55 -07:00
Davis W. Frank & Sheel Choksi
3847557bbc
Squashed spy refactor and new spy syntax
...
Jasmine spies now have a 'and' property which allows the user to
change the spy's execution strategy-- such as '.and.callReturn(4)'
and a 'calls' property which allows inspection of the calls a spy
has received.
* This is a breaking change *
There is a CallTracker that keeps track of all calls and arguments
and a SpyStrategy which determines what the spy should do when it
is called.
2013-07-22 14:29:52 -07:00
Sheel Choksi
61a1f93488
Older IE fixes
...
Still not green, but getting close. Summary of Older IE discrepancies:
- Older IE doesn't have apply/call on the timing functions
- Older IE doesn't allow applying falsy arguments
- Older IE doesn't allow setting onclick to undefined values
- Older IE doesn't have text property on dom nodes
2013-07-21 19:44:47 -07:00
Sheel Choksi
d4f78922cd
Update built distribution, it's a few commits behind
2013-07-21 18:36:12 -07:00