Sheel Choksi
8a6d7828c6
Make all async functions be subject to the timeout
...
[finishes #60798058 ]
2013-11-14 23:01:43 -08:00
Sheel Choksi
c888b0c1b8
Slight refactoring of clearing timeouts when an exception is thrown
2013-11-14 20:48:28 -08:00
Sheel Choksi
7ee5073921
Fix bad merge
2013-11-11 21:01:36 -08:00
Sheel Choksi
614a18453e
Rename Spec's queueRunner to more accurately be a queueRunnerFactory
2013-11-11 20:53:13 -08:00
François Daoust
4a7b79ad0d
Regression spec added for timeout timer in an async spec
...
The spec ensures that the timeout timer is properly cleared out
even when the async spec throws an exception.
2013-11-07 16:08:41 +01:00
Sheel Choksi
1b6725ec25
Updating Spec#getFullName spec to work in IE 8
...
Forgot that the pretty printer is not functional in IE 8, which
subsequently brings down toHaveBeenCalledWith
2013-11-04 21:59:06 -08:00
Sheel Choksi
952eb59707
Change test for how a spy gets its full name
...
- Removes another TODO
- A spec uses its full name as soon as it is created (for the result
object) and so it needed to be tested differently
2013-11-04 21:38:01 -08:00
Sheel Choksi
de6a305b44
Move the various integration specs into their own folder
...
- There is now an integration folder inside of spec/core
- Killed the TODOs about moving around integration specs
2013-11-03 16:48:35 -08:00
Kristóf Marussy
4350045d61
Replaced deprecated octal literal with hexadecimal
...
Octal literals are deprecated in JavaScript 1.5 and Gjs were generating
warnings because of them.
2013-10-31 14:03:06 -07:00
August Toman-Yih and Sheel Choksi
ea888e4c03
Fix triple/tripple spelling error
2013-10-30 17:30:25 -07:00
Josh Soref
c7e3ca6c8a
Spelling: Fix spelling errors
...
* equal
* existence
* expectation
* expected
* intend
* message
* report
* singular
2013-10-30 20:12:05 -04: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
966f76b481
Add in missing clock uninstall
2013-10-29 17:28:41 -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
61993cf1fc
Expose Jasmine's topSuite [finishes #59774024 ]
2013-10-29 11:27:12 -07:00
Kyriacos Souroullas and Sheel Choksi
cd9d5284cd
Matchers can have a negativeCompare
...
- Passing in a 'negativeCompare' will cause that function to be used when it is a 'not' assertion
- Otherwise, the reversal of the compare's result will be used instead
[finishes #59703824 ]
2013-10-28 17:13:18 -07:00
Kyriacos Souroullas and Sheel Choksi
e346e7dcc1
Revert removal of compare nesting
...
Since we want the user to be able to pass a negative comparison function, the extra layer of wrapping is now needed
2013-10-28 17:13:09 -07:00
Sheel Choksi and Tim Jarratt
797984f173
Add newlines to end of files
2013-10-25 10:57:43 -07:00
Sheel Choksi and Tim Jarratt
29c5c127e5
Refactor Suite.addSpec and .addSuite to .addChild
2013-10-25 10:52:31 -07:00
Sheel Choksi and Tim Jarratt
26581b4c91
Rename Suite.children_ to .children
...
Also removed some unit tests that were brittle, and already tested by
better, more round-trip tests.
2013-10-25 10:25:50 -07:00
Davis W. Frank
243ff80196
Fixing global leak for 'timer'
2013-10-24 17:17:05 -07:00
Sheel Choksi
6453ed656b
Suites just have children instead of separating into specs/suites
2013-10-24 16:35:00 -07:00
Sheel Choksi
7a4876ecfa
Also move function to determine whether specs should catch exceptions into closure
2013-10-24 16:24:55 -07:00
Sheel Choksi
d9ece1f14f
Remove version/versionString and currentRunner
...
- Instead of version/versionString, jasmine.version should be sufficient
- currentRunner was exposing Jasmine's internal top level suite
2013-10-24 15:42:46 -07:00
Sheel Choksi
f1613ce77c
Move additional methods from Env prototype to env closure
...
- Users can no longer spelunk the spec tree from topSuite
- Users no longer have access to currentSuite/currentSpec
- Other miscellaneous (arguably less useful) methods have also been tucked
away into the closure, like suiteFactory
2013-10-24 15:28: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
ab0b2b783c
Move next spec/next suite ids into closure
...
No longer exposing these from the environment
2013-10-24 13:43:04 -07:00
Sheel Choksi
d0aff9ed02
Use toThrowError instead of toThrow in places where we are expecting an error
2013-10-24 12:15:17 -07:00
Sheel Choksi
0c6e590a93
A spec without expectations is considered passing
...
- Specs are passing by default unless told otherwise
- Getting the result.status of a spec before the spec has run is now
undefined instead of pending
[finishes #59422744 ]
2013-10-24 11:34:42 -07:00
Sheel Choksi
d06da150de
Stop passing in queryString to HTMLReporter, it is unused
2013-10-23 11:06:42 -07:00
Sheel Choksi
39d7ebf28e
Remove an extra layer of wrapping for matchers/custom matchers
...
Helps reduce how nested custom matchers have to be for users as well as
Jasmine internal matchers
[#59161378 ]
2013-10-20 22:21:56 -07:00
Sheel Choksi
5f429fcb37
Re-enable CustomMatchersSpec and update for current version of custom matchers
2013-10-20 21:58:16 -07:00
Sheel Choksi
b6eb9a4d5e
Remove now unused updateInterval that was being set in specs
2013-10-20 17:12:40 -07:00
Davis W. Frank
81299860aa
Merge pull request #450 from slackersoft/manualClockUninstall
...
Env no longer automatically uninstalls the clock after each spec
2013-10-18 15:51:10 -07:00
slackersoft
ca6fa6f711
Env no longer automatically uninstalls the clock after each spec
...
- Behaves more like how we want plugins to behave
[#58281436 ]
2013-10-16 18:39:03 -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
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
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
a563e67015
Move selenium_runner.yml to spec/javascripts/support
...
- The selenium runner gem should support configurable path as the main
gem does so we don't need to do this. This workaround is kind of
gross.
2013-10-02 16:48:13 -07:00
Gregg Van Hove and Tim Jarratt
fab489851e
Fix paths for node specs
...
[#58126010 ]
2013-10-02 16:41:07 -07:00
Gregg Van Hove and Tim Jarratt
1c19b8e38a
Move spec files back out of spec/javascripts
...
- Jasmine gem allows us to specify a path to jasmine.yml via ENV
[finish #58126010 ]
2013-10-02 16:32:35 -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
51dd66a4cc
Turn the exceptions spec back on, it still works
2013-10-02 10:24:24 -07:00
Gregg Van Hove and Tim Jarratt
37a3135d6a
cleanup whitespace
2013-10-01 16:30:17 -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
Gregg Van Hove and Tim Jarratt
70fb0f0ed5
Update Firefox pretty print test
...
At some point, firefox changed the exception message.
2013-09-30 15:43:44 -07:00
Sheel Choksi
15889494c5
Update node suites to not rely on previous accidental global j$ and create its own
2013-09-29 14:59:58 -07:00
Gregg Van Hove
04e1d8420e
Ensure tunnel_identifier is properly quoted for travis builds
2013-09-25 14:24:57 -07:00
Gregg Van Hove and Rajan Agaskar
19b2472761
Really make tunnel_identifier a string.
...
yay.
2013-09-25 11:24:41 -07:00