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
Dan Hansen and Davis W. Frank
e09fd40933
Move to grunt for building all distribution files.
...
* canonical version number of jasmine-core is now is package.json
* `grunt buildDistribution` builds jasmine.js, jasmine-html.js, jasmine.css and outputs them to the dist dir
* `grunt buildStandaloneDist` builds the example spec runner files and compresses them to dist/jasmine-VERSION.zip
* `grunt compass` compiles jasmine.css
* jasmine.Env handling of version is backwards compatible, but uses the version string directly (and nicely deprecated)
* Ruby/thor tasks that did the above deleted
2013-03-03 16:04:38 -08:00
Dan Hansen and Davis W. Frank
6eecc562ff
This spec is for a case where FF *sometimes* loses it's exception
...
message property. Fixed the spec using a double so that the test will
run green on non-FF environments.
2013-03-01 14:32:58 -08:00
Dan Hansen and Davis W. Frank
cf7bb0269b
Added grunt to project.
...
Move from embedded "fork" of jsHint to using grunt's jsHint module.
Cleaned ALL jsHint errors.
Added jasmine.util.isUndefined as alternative to extra careful protection against undefined clobbering
2013-03-01 14:28:18 -08:00
Dan Hansen and Davis W. Frank
b22bf9a031
Protect against a FF bug: Exceptions don't always have a message property even though they were instantiated with one. Using Error#toString alleviates this
2013-03-01 10:43:09 -08:00
Dan Hansen and Davis W. Frank
b7af6abca5
Support pending specs with:
...
- xit
- it with a null function body ( it("should be pending");
- calling pending() inside a spec
- having a spec without any expectations
Pending and Filtered specs now call Reporter interface specStarted so that reporting acts as expected.
Pending and Filtered spec names are present and styled in the HTML reporter
Using xit used to disable a spec. Disabling is now just when a spec is filtered out at run time (usually w/ the reporter).
Suites are still disabled with xdescribe and means its specs are never executed.
2013-03-01 10:41:25 -08:00
Dan Hansen and Davis W. Frank
d6da13a8dd
Attempt at normalizing error stacks across browsers.
...
Failed expectations now have a `stack` property, remove `trace.stack`
2013-02-27 16:37:31 -08:00
Dan Hansen and Davis W. Frank
dc4563d45c
Require jasmine gem in the rakefile
2013-02-27 10:30:03 -08:00
Dan Hansen and Davis W. Frank
92492c0144
Env#addMatchers is no longer exposed on spec, it is exposed globally in boot.js.
2013-02-26 16:41:46 -08:00
Dan Hansen and Davis W. Frank
d6987a6c84
Cleanup
2013-02-26 13:39:06 -08:00
Dan Hansen and Davis W. Frank
43c8fdd33f
Update travis yml to use the new build script
2013-02-26 12:50:50 -08:00
Dan Hansen and Davis W. Frank
98ae076f0c
* JsApiReporter - better inteface for getting spec results (it's a slice!)
...
* Removed RSpec dependency from running self_test/CI - includes using new Jasmine::Formatter::Console from the gem
*
2013-02-26 12:24:59 -08:00
Dan Hansen and Davis W. Frank
2c06e36b9b
Fix for default state of exceptionCatching from HTML ui
2013-02-26 12:21:02 -08:00
Darwin
5a744884fe
fix so that utf-8 characters are rendered correctly in the browser
2013-02-26 15:58:01 +01:00
Darwin
e6888b840d
Fixes #296 , Whitespace failures will now be esier to understand.
2013-02-26 12:41:19 +01:00
Dan Hansen
e682d18387
When filtering spec, match against the full name of the spec
2013-02-22 14:36:46 -08:00
Dan Hansen and Davis W. Frank
10b09ea9f5
Moved dependencies out of HtmlReporter and into boot.js - QueryString for spec filtering and UI around raising exceptions checkbox; New object for handling spec filtering for browsers;
2013-02-19 15:29:50 -08:00
Dan Hansen and Davis W. Frank
c53b36a9b2
Fix Build: Firefox doesn't hoist function definitions in for loops
2013-02-19 15:26:08 -08:00
Dan Hansen and Davis W. Frank
af71f4d2f9
Remove vestiges of old HTMLReporter
2013-02-19 13:45:25 -08:00
Dan Hansen and Davis W. Frank
83227f2163
Merge branch '2_0'
...
src/html/HtmlReporter.js
2013-02-19 12:09:33 -08:00
Dan Hansen and Davis W. Frank
f865758124
Updated jasmine.js
2013-02-19 11:52:16 -08:00
Davis W. Frank
3fc79bac9e
* Removed old Queue & Runner in favor of Suite using the new QueueRunner
...
* New reporter interface across all reporters
* xdescribe & xit now store disabled specs
* Rewrite of HtmlReporter to support new interface and be more performant
2013-02-19 11:45:05 -08:00
Davis W. Frank
05977203a6
Cleanup of Exception formatting (incl. better Browser support re:
...
toString;
NestedResults is dead, remove it from jasmine.yml
2013-02-19 11:37:13 -08:00