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
Davis W. Frank
e73b9e7902
Merge pull request #384 from sheelc/apireporter_execution_time
...
Add execution time elapsed to JsApiReporter
2013-06-09 20:52:10 -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
d5f1264416
Merge pull request #383 from sheelc/remove_format_exception
...
Remove unused formatException from util
2013-06-09 10:13:11 -07:00
Sheel Choksi
579fddc2d2
Remove unused formatException from util
...
The ExceptionFormatter is used instead of formatException from jasmine util
2013-06-08 21:46:16 -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
pivotalprivate
582ad6512a
Merge pull request #379 from sheelc/toThrowError_fixup
...
Fix up refactoring mistake in toThrowError
2013-06-05 09:54:12 -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
Davis W. Frank
b87eb240b3
Merge pull request #378 from sheelc/toThrowError_modifications
...
Avoid instantiating passed in errorType in toThrowError
2013-06-03 21:24:38 -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
9e31201f1a
Breaking out Spies into their own source file
2013-06-03 08:22:45 -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
Davis W. Frank
7516bba2b0
Updating gem source to secure version
2013-05-21 11:47:47 -07:00
Davis W. Frank
4f19d34ad7
Merge pull request #363 from robinboehm/remove-deprecated-matcherspp
...
Remove deprecated jasmine.Matchers.pp function.
2013-05-12 11:35:02 -07:00
Robin Böhm
c40b64a24c
Remove deprecated jasmine.Matchers.pp function. Marked deprecated at may 2010.
2013-05-12 09:37:07 +02:00
Davis W. Frank
baad5ff01f
Merge pull request #356 from sheelc/spec_titles
...
Add titles to specs in HtmlReporter
2013-04-28 23:11:40 -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
Rajan Agaskar
9c4467bac0
Merge pull request #347 from sheelc/regex-exception-matching
...
Regex exception matching
2013-04-08 18:16:09 -07:00
Sheel Choksi
c017257164
add in regex matching for toThrow matcher
2013-04-07 16:15:07 -07:00
Sheel Choksi
2445fb36dc
simplify failure message logic in the toThrow matcher
2013-04-06 22:06:14 -07:00
Sheel Choksi
eec6d7d23e
update lib/jasmine-core/jasmine.js to make 'grunt execSpecsinNode' pass again
2013-04-06 22:03:31 -07:00
Davis W. Frank
3110da62e5
Update Contribute.markdown
2013-04-01 11:35:22 -07:00
pivotalprivate
d41b281eb1
Update Contribute.markdown
...
Adding link for how to get grunt-cli installed
2013-04-01 11:32:57 -07:00
Davis W. Frank
6feb124853
Remove JSDocs from everywhere in the Repo - source code, GHPages, etc. We're not using them and the stale docs were confusing. Fixes #338 Fixes #99
2013-03-26 23:11:24 -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
Davis W. Frank
01b2fc612c
Merge pull request #340 from CaioToOn/fix-clock-settimeout
...
DelayedFunctionScheduler tick, setTimeout/Interval delay defaults to 0
2013-03-13 15:47:09 -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
6b2d8da55f
Cleanup Gruntfile so that all tasks are registered at the top level
...
[Finishes #45559005 ]
2013-03-04 16:43:48 -08:00
Dan Hansen and Davis W. Frank
538b32e401
Default character encoding is now UTF-8
2013-03-04 16:24:21 -08:00
Davis W. Frank
e6e8908f49
Merge pull request #332 from bjornblomqvist/preserve-whitespace-in-result-message
...
Fixes #296 , Whitespace failures will now be esier to understand.
2013-03-03 22:27:55 -08:00
Davis W. Frank
86dafd5d2d
Merge pull request #329 from sunliwen/master
...
Build status should be updated
2013-03-03 21:14:14 -08:00
Davis W. Frank
aa60d5f00d
Update util.js
...
Removed old jsDoc comments
2013-03-03 21:11:30 -08:00
Davis W. Frank
079e6e1e08
Merge pull request #333 from bjornblomqvist/utf8-fix
...
fix so that utf-8 characters are rendered correctly in the browser
2013-03-03 21:03:42 -08:00
Dan Hansen and Davis W. Frank
7706512525
Delegate to originalJasmine for the version string in test
2013-03-03 16:19:56 -08:00