Davis W. Frank
2d7fe0b6ce
Merge pull request #388 from sheelc/html_self_test
...
Have Jasmine HTML use the source files in specs
2013-07-21 10:33:26 -07:00
Davis W. Frank
44feee57ac
Merge pull request #394 from albertandrejev/ObjectContaing-message
...
ObjectContaining wrong filed value error message
2013-07-21 10:30:45 -07:00
JR Boyens
990cc41f45
Remove debugger statement
2013-07-19 18:55:07 -07:00
Greg Cobb and JR Boyens
1b0b4f22a0
Fix IE10
2013-07-19 17:34:04 -07:00
Greg Cobb and JR Boyens
a6953df28c
Add corrected tunnel identifier
2013-07-19 15:13:41 -07:00
Greg Cobb and JR Boyens
d40e0cebac
Use Sauce Labs to test Jasmine against a metric ton of browsers
2013-07-19 11:29:12 -07:00
Greg Cobb and JR Boyens
6569176cc9
Run specs on multiple browsers
2013-07-18 16:32:33 -07:00
Greg Cobb and JR Boyens
0f803430e4
Testing out travis changes
2013-07-18 15:30:04 -07:00
Greg Cobb and JR Boyens
821f13dff5
Don't refer to window for the sake of Node specs
2013-07-18 13:59:25 -07:00
Greg Cobb and JR Boyens
3e2d9baec2
[Finishes #40853563 ] Allowed the DelayedFunctionScheduler to support strings that are eval'd
2013-07-18 13:57:51 -07:00
Sheel Choksi
f68657f14e
Have Jasmine HTML use the source files in specs
...
Similar to the changes in Jasmine core and console, this gets the
HTML specs of Jasmine using j$ instead of jasmine so that they use
the source files instead of the built distribution
2013-07-13 23:36:29 -07:00
Sheel Choksi
c91df21a96
Detailed error messages in toThrow/toThrowError
...
- included what was thrown for failure messages in toThrow and toThrowError
- fixed typo from 'execption' to 'exception' in toThrowError failure messages
- clarified failure messages in toThrowError to include specific error types
[Fixes #52680709 ]
2013-07-12 23:24:50 -07:00
Sheel Choksi
5b986c953c
Remove symlinked boot.js from spec/support
...
[Finishes #52810587 ]
2013-07-11 21:29:28 -07:00
Sheel Choksi
aabf8cec82
Specs/Suites wait for an async spec to finish
...
Go back to having all suites and specs run asynchronously so that
they properly wait for any async specs that there might be
2013-07-10 20:52:18 -07:00
Sheel Choksi
ccdcb293f4
Add back in forgotten 'env' to Env integration specs
...
As pointed out by @jdmarshall. Fixes #399
2013-07-07 21:56:26 -07:00
Sheel Choksi
ec7d58fce0
QueueRunner continues running functions in async case
...
Continue running functions even if an async spec throws an
exception during the synchronous portion of the spec
2013-07-07 21:56:26 -07:00
Davis W. Frank and Sheel Choksi
7f6b16ccf2
Only clear stack when QueueRunner is done with its functions
2013-07-03 15:20:45 -07:00
Sheel Choksi
34b8bf5fb0
Remove Env's calculation of executionTime
...
[#45659879 ]
2013-07-03 14:12:19 -07:00
Davis W. Frank and Sheel Choksi
179e54b9fb
Refactor suite timing out of Env and into each Reporter
...
[finishes #45659879 ]
2013-07-03 09:30:05 -07:00
Davis W. Frank and Sheel Choksi
09fe7b0540
Have QueueRunner run specs iteratively if possible, fallback to recursion for async specs
...
This prevents the stack from growing as large for the normal cases and is giving a significant speedup for the performance suite
2013-07-02 16:37:38 -07:00
Davis W. Frank and Sheel Choksi
264b1fea50
Merge the node performance suite into the node suite
...
The node performance suite can be run with node: `node
spec/node_suite.js --perf`
2013-07-02 16:37:38 -07:00
Davis W. Frank and Sheel Choksi
dcf7a0867e
Test asynchronous parts of Jasmine asynchronously
2013-07-02 16:37:38 -07:00
Davis W. Frank and Sheel Choksi
f5bc9faf63
Rename for stack-clearing post spec run to be more clear; use the real setTimeout when clearing stack
2013-07-02 09:51:41 -07:00
Davis W. Frank
661a884416
Merge pull request #392 from albertandrejev/jasmine.Any
...
jasmine.any Boolean support
2013-06-21 10:07:35 -07:00
Albert Andrejev
7acc6b327a
ObjectContaining wrong filed value error message
2013-06-21 15:16:41 +03:00
Albert Andrejev
e40e0c9170
jasmine.any Boolean support
2013-06-21 15:07:55 +03:00
Davis W. Frank
7ae3fa9fef
Fixed some specs that were not referring to the correct instance of Jasmine
2013-06-10 22:45:04 -07:00
Sheel Choksi
ffdf1eb16d
Add execution time elapsed to JsApiReporter
...
Since this information is desired in ConsoleReporter, HtmlReporter,
and now JsApiReporter, the executionTime is passed through in
jasmineDone from Env instead of making each reporter compute it.
Fixes #30 , [Finishes #45659879 ]
2013-06-09 12:09:06 -07:00
Davis W. Frank
313e607135
Merge pull request #369 from sheelc/query-selectors
...
Query selectors
2013-06-07 07:38:11 -07:00
Davis W. Frank
b6599d52aa
Merge pull request #358 from sheelc/safari_exception_fix
...
Fix spec to throw error, ensuring a stack property
2013-06-07 07:37:39 -07:00
Sheel Choksi
600be098af
Fix up my refactoring mistake in toThrowError
...
strengthen the associated tests to protect against it in the future
2013-06-04 19:49:11 -07:00
Sheel Choksi
7055d95584
Avoid instantiating passed in errorType in toThrowError
...
since the passed in errorType could be a custom user function,
we instead detect if its an instanceof Error by using a Surrogate
(inspired by Backbone's use of surrogacy)
2013-06-03 21:05:27 -07:00
Sheel Choksi
1c87060804
Fix spec to throw error, ensuring a stack property
...
In Safari Mac 6.0.4 (and possibly other versions), a new error does
not have the stack property. Throwing the error and then catching it
ensures that the stack property has the correct value.
This fix gets the specs to run green in Safari.
2013-06-03 19:25:37 -07:00
Sheel Choksi
b4acdbd90a
Remove use of getElementsByTagName and getElementsByClassName
...
Replace calls to these functions with querySelector and querySelectorAll
2013-06-03 19:24:53 -07:00
Davis W. Frank
fbb9f53524
Fixing red build. Not sure why, but this spec was green in Chrome and Node.js
2013-06-03 10:31:52 -07:00
Davis W. Frank
0ac497db6b
Simplifying toThrow:
...
- It still supports no expected, which means that something was thrown
- Expected value is now tested via equality in order to pass
Adding toThrowError:
- toThrowError() passes if an Error type was thrown
- toThrowError(String) & toThrowError(RegExp) compare Expected to the Error message
- toThrowError(Error constructor) compares Expected to the constructor of what was thrown
- toThrowError(Error constructor, String) & toThrowError(Error constructor, RegExp) compares both the Error and the message
Also, equality now handles Errors, enforcing the message as part of the equality.
2013-06-03 09:24:43 -07:00
Davis W. Frank
d53002c63a
Matchers & Matchers specs now broken up into individual files. There is now a requireMatchers jasmineRequire function to attach matchers properly.
2013-06-02 22:22:25 -07:00
Davis W. Frank
3271dc8838
Last commit did not include self-test with Any and ObjectContaining in separate files. Fixed.
2013-06-02 22:16:30 -07:00
Davis W. Frank
475aacbfbb
[Finishes #50607273 ] - added specs to cover the cases from GitHub issue #371
2013-05-29 20:16:12 -07:00
Davis W. Frank
8303c79f26
Adding spec to cover equality of frozen objects, per GitHub issue #266
2013-05-29 12:32:01 -07:00
Davis W. Frank
5700ace2c9
Squashed matchers refactor - matchers now unit-testable apart from Expectation and Spec.
2013-05-28 16:54:01 -07:00
Davis W. Frank
aca43bd3a3
Squashed commit of work to make Jasmine a collection of isolated modules. Note now that in our test suite, "jasmine" now always refers to the build jasmine loaded from jasmine.js and "j$" always refers to the code in the src directories.
...
Also, dev_boot.js is now a copy of boot.js and has additional changes to load jasmine the second time, into the j$ reference.
2013-05-28 14:09:20 -07:00
Sheel Choksi
bf2adf55eb
Add titles to specs in HtmlReporter
...
Each spec symbol contains a title, which is the full name of the
spec it represents.
[Finishes #48420677 ]
2013-04-28 21:35:12 -07:00
Davis W. Frank
dd8d3f9788
Fix [ #48420035 ]
2013-04-20 08:27:38 -07:00
Sheel Choksi
c017257164
add in regex matching for toThrow matcher
2013-04-07 16:15:07 -07:00
Davis W. Frank
3be247ceb1
Merge branch 'master' of https://github.com/pivotal/jasmine
2013-03-24 09:42:14 -07:00
Davis W. Frank
edc2bfae93
All Jasmine file manipulation/development moved from Thor to Grunt. Thor has been removed completely. Run grunt --help to see available tasks.
...
Canonical Jasmine version now lives in `package.json` (Node formatted) and is copied into Jasmine source (JavaScript and Ruby)
Jasmine distribution now has MIT license and Pivotal Labs copyright at the top of each distributed file.
2013-03-24 09:41:42 -07:00
Caio Cunha
d8f6aac2cd
Added spec for #tick default delay
2013-03-13 11:00:30 -03:00
Caio Cunha
e7a930a5b3
DelayedFunctionScheduler tick, setTimeout/Interval delay defaults to 0
...
If ommited or null, delay for refered methods will default to 0. This
will make setTimeout and setInterval methods to behave as expected by
[HTML5 specs](http://www.w3.org/TR/html51/webappapis.html#timers ):
"Let timeout [delay] be the second argument to the method, or zero if the
argument was omitted."
This commit also fixes an issue with tick() being called without arguments,
that causes the scheduler to break and stop working after this call.
2013-03-13 10:55:46 -03:00
Dan Hansen and Davis W. Frank
538b32e401
Default character encoding is now UTF-8
2013-03-04 16:24:21 -08:00