unpoly-rails 0.32.0 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of unpoly-rails might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +106 -76
- data/README.md +8 -5
- data/README_RAILS.md +1 -1
- data/design/test_rejected_promise.txt +5 -0
- data/dist/unpoly-bootstrap3.js +1 -1
- data/dist/unpoly-bootstrap3.min.js +1 -1
- data/dist/unpoly.js +814 -417
- data/dist/unpoly.min.js +3 -3
- data/lib/assets/javascripts/unpoly/{browser.js.coffee → browser.coffee} +15 -6
- data/lib/assets/javascripts/unpoly/{bus.js.coffee → bus.coffee} +13 -13
- data/lib/assets/javascripts/unpoly/dom/extract_cascade.coffee +73 -0
- data/lib/assets/javascripts/unpoly/dom/extract_plan.coffee +65 -0
- data/lib/assets/javascripts/unpoly/{flow.js.coffee → dom.coffee} +109 -114
- data/lib/assets/javascripts/unpoly/{navigation.js.coffee → feedback.coffee} +11 -11
- data/lib/assets/javascripts/unpoly/{form.js.coffee → form.coffee} +35 -24
- data/lib/assets/javascripts/unpoly/{history.js.coffee → history.coffee} +9 -10
- data/lib/assets/javascripts/unpoly/{layout.js.coffee → layout.coffee} +53 -21
- data/lib/assets/javascripts/unpoly/{link.js.coffee → link.coffee} +46 -40
- data/lib/assets/javascripts/unpoly/{log.js.coffee → log.coffee} +2 -2
- data/lib/assets/javascripts/unpoly/{modal.js.coffee → modal.coffee} +17 -14
- data/lib/assets/javascripts/unpoly/{motion.js.coffee → motion.coffee} +28 -31
- data/lib/assets/javascripts/unpoly/namespace.coffee.erb +10 -0
- data/lib/assets/javascripts/unpoly/{popup.js.coffee → popup.coffee} +22 -10
- data/lib/assets/javascripts/unpoly/{proxy.js.coffee → proxy.coffee} +34 -12
- data/lib/assets/javascripts/unpoly/{rails.js.coffee → rails.coffee} +0 -0
- data/lib/assets/javascripts/unpoly/{syntax.js.coffee → syntax.coffee} +32 -21
- data/lib/assets/javascripts/unpoly/{toast.js.coffee → toast.coffee} +0 -0
- data/lib/assets/javascripts/unpoly/{tooltip.js.coffee → tooltip.coffee} +2 -2
- data/lib/assets/javascripts/unpoly/{util.js.coffee → util.coffee} +122 -35
- data/lib/assets/javascripts/unpoly-bootstrap3/{form-ext.js.coffee → form-ext.coffee} +0 -0
- data/lib/assets/javascripts/unpoly-bootstrap3/{layout-ext.js.coffee → layout-ext.coffee} +0 -0
- data/lib/assets/javascripts/unpoly-bootstrap3/{modal-ext.js.coffee → modal-ext.coffee} +0 -0
- data/lib/assets/javascripts/unpoly-bootstrap3/{navigation-ext.js.coffee → navigation-ext.coffee} +1 -1
- data/lib/assets/javascripts/{unpoly-bootstrap3.js.coffee → unpoly-bootstrap3.coffee} +0 -0
- data/lib/assets/javascripts/unpoly.coffee +22 -0
- data/lib/assets/stylesheets/unpoly/{close.css.sass → close.sass} +0 -0
- data/lib/assets/stylesheets/unpoly/{flow.css.sass → flow.sass} +0 -0
- data/lib/assets/stylesheets/unpoly/{link.css.sass → link.sass} +0 -0
- data/lib/assets/stylesheets/unpoly/{modal.css.sass → modal.sass} +0 -0
- data/lib/assets/stylesheets/unpoly/{popup.css.sass → popup.sass} +0 -0
- data/lib/assets/stylesheets/unpoly/{toast.css.sass → toast.sass} +0 -0
- data/lib/assets/stylesheets/unpoly/{tooltip.css.sass → tooltip.sass} +0 -0
- data/lib/assets/stylesheets/unpoly-bootstrap3/{modal-ext.css.sass → modal-ext.sass} +0 -0
- data/lib/assets/stylesheets/{unpoly-bootstrap3.css.sass → unpoly-bootstrap3.sass} +0 -0
- data/lib/assets/stylesheets/{unpoly.css.sass → unpoly.sass} +0 -0
- data/lib/unpoly/rails/version.rb +1 -1
- data/package.json +1 -1
- data/spec_app/Gemfile.lock +11 -13
- data/spec_app/app/assets/javascripts/jasmine_specs.coffee +1 -1
- data/spec_app/app/assets/stylesheets/_helpers.sass +1 -1
- data/spec_app/config/initializers/assets.rb +1 -5
- data/spec_app/spec/javascripts/up/{flow_spec.js.coffee → dom_spec.js.coffee} +294 -44
- data/spec_app/spec/javascripts/up/{navigation_spec.js.coffee → feedback_spec.js.coffee} +2 -2
- data/spec_app/spec/javascripts/up/form_spec.js.coffee +1 -0
- data/spec_app/spec/javascripts/up/layout_spec.js.coffee +10 -0
- data/spec_app/spec/javascripts/up/link_spec.js.coffee +28 -0
- data/spec_app/spec/javascripts/up/modal_spec.js.coffee +46 -9
- data/spec_app/spec/javascripts/up/motion_spec.js.coffee +32 -2
- data/spec_app/spec/javascripts/up/popup_spec.js.coffee +5 -4
- data/spec_app/spec/javascripts/up/util_spec.js.coffee +75 -0
- data/spec_app/vendor/{assets/bower_components/jasmine-ajax → asset-libs/jasmine-ajax-3.3.1}/.bower.json +0 -0
- data/spec_app/vendor/asset-libs/jasmine-ajax-3.3.1/.gitignore +6 -0
- data/spec_app/vendor/asset-libs/jasmine-ajax-3.3.1/.npmignore +10 -0
- data/spec_app/vendor/asset-libs/jasmine-ajax-3.3.1/.pairs +6 -0
- data/spec_app/vendor/asset-libs/jasmine-ajax-3.3.1/.travis.yml +56 -0
- data/spec_app/vendor/{assets/bower_components/jasmine-ajax/lib/mock-ajax.js → asset-libs/jasmine-ajax-3.3.1/jasmine-ajax.js} +83 -26
- data/spec_app/vendor/{assets/bower_components/jasmine-fixture/dist → asset-libs/jasmine-fixture-1.3.4}/jasmine-fixture.js +13 -13
- data/spec_app/vendor/{assets/bower_components/jasmine-jquery → asset-libs/jasmine-jquery-2.1.1}/.bower.json +0 -0
- data/spec_app/vendor/{assets/bower_components/jasmine-jquery/lib → asset-libs/jasmine-jquery-2.1.1}/jasmine-jquery.js +0 -0
- data/spec_app/vendor/assets/{javascripts/.keep → .keep} +0 -0
- metadata +52 -203
- data/lib/assets/javascripts/unpoly/module.js.coffee.erb +0 -8
- data/lib/assets/javascripts/unpoly.js.coffee +0 -21
- data/spec_app/Bowerfile +0 -3
- data/spec_app/vendor/assets/.bowerrc +0 -3
- data/spec_app/vendor/assets/bower.json +0 -8
- data/spec_app/vendor/assets/bower_components/jasmine/.bower.json +0 -50
- data/spec_app/vendor/assets/bower_components/jasmine/CONTRIBUTING.md +0 -130
- data/spec_app/vendor/assets/bower_components/jasmine/GOALS_2.0.md +0 -64
- data/spec_app/vendor/assets/bower_components/jasmine/MANIFEST.in +0 -5
- data/spec_app/vendor/assets/bower_components/jasmine/MIT.LICENSE +0 -20
- data/spec_app/vendor/assets/bower_components/jasmine/README.md +0 -73
- data/spec_app/vendor/assets/bower_components/jasmine/RELEASE.md +0 -73
- data/spec_app/vendor/assets/bower_components/jasmine/bower.json +0 -41
- data/spec_app/vendor/assets/bower_components/jasmine/images/jasmine-horizontal.png +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/images/jasmine-horizontal.svg +0 -102
- data/spec_app/vendor/assets/bower_components/jasmine/images/jasmine_favicon.png +0 -0
- data/spec_app/vendor/assets/bower_components/jasmine/lib/console/console.js +0 -190
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/boot.js +0 -143
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js +0 -24
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/example/node_example/lib/jasmine_examples/Song.js +0 -9
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine-html.js +0 -446
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine.css +0 -58
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/jasmine.js +0 -3298
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/json2.js +0 -489
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core/node_boot.js +0 -41
- data/spec_app/vendor/assets/bower_components/jasmine/lib/jasmine-core.js +0 -37
- data/spec_app/vendor/assets/bower_components/jasmine/package.json +0 -34
- data/spec_app/vendor/assets/bower_components/jasmine/requirements.txt +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/MIT.LICENSE +0 -20
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/README.markdown +0 -289
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/bower.json +0 -35
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/package.json +0 -26
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/2.0.2.md +0 -50
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/2.99.md +0 -14
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.0.md +0 -28
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.1.0.md +0 -24
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.1.1.md +0 -23
- data/spec_app/vendor/assets/bower_components/jasmine-ajax/release_notes/3.2.0.md +0 -20
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/.bower.json +0 -27
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/.gitignore +0 -8
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/.npmignore +0 -8
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/LICENSE.txt +0 -24
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/README.md +0 -118
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/bower.json +0 -17
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/dist/jasmine-fixture.min.js +0 -5
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/spec-e2e/basic-usage-spec.coffee +0 -14
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/spec-e2e/helpers/invariants.coffee +0 -17
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/spec-e2e/helpers/spec-within-a-spec.coffee +0 -24
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/spec-e2e/helpers/tmp-files.coffee +0 -8
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/spec-e2e/support/jasmine1-testem-config.json +0 -11
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/spec-e2e/support/jasmine2-testem-config.json +0 -11
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/vendor/js/jquery-1.11.0.js +0 -10337
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/vendor/js/jquery-1.8.3.js +0 -9472
- data/spec_app/vendor/assets/bower_components/jasmine-fixture/vendor/js/jquery-2.1.0.js +0 -9111
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/CONTRIBUTING.md +0 -28
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/Gruntfile.js +0 -49
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/LICENSE +0 -20
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/README.md +0 -367
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/bower.json +0 -15
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/package.json +0 -35
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/fixture_with_checkbox_with_checked.html +0 -6
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/fixture_with_javascript.html +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/fixture_with_javascript_block.html +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/javascripts/jasmine_javascript_click.js +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/javascripts/jasmine_javascript_hover.js +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/json/jasmine_json_test.json +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/real_non_mocked_fixture.html +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/fixtures/real_non_mocked_fixture_style.css +0 -1
- data/spec_app/vendor/assets/bower_components/jasmine-jquery/spec/suites/jasmine-jquery-spec.js +0 -1842
- data/spec_app/vendor/assets/bower_components/jquery/.bower.json +0 -38
- data/spec_app/vendor/assets/bower_components/jquery/MIT-LICENSE.txt +0 -21
- data/spec_app/vendor/assets/bower_components/jquery/bower.json +0 -28
- data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.js +0 -9210
- data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.min.js +0 -5
- data/spec_app/vendor/assets/bower_components/jquery/dist/jquery.min.map +0 -1
- data/spec_app/vendor/assets/bower_components/jquery/src/ajax/jsonp.js +0 -89
- data/spec_app/vendor/assets/bower_components/jquery/src/ajax/load.js +0 -75
- data/spec_app/vendor/assets/bower_components/jquery/src/ajax/parseJSON.js +0 -13
- data/spec_app/vendor/assets/bower_components/jquery/src/ajax/parseXML.js +0 -28
- data/spec_app/vendor/assets/bower_components/jquery/src/ajax/script.js +0 -64
- data/spec_app/vendor/assets/bower_components/jquery/src/ajax/var/nonce.js +0 -5
- data/spec_app/vendor/assets/bower_components/jquery/src/ajax/var/rquery.js +0 -3
- data/spec_app/vendor/assets/bower_components/jquery/src/ajax/xhr.js +0 -136
- data/spec_app/vendor/assets/bower_components/jquery/src/ajax.js +0 -786
- data/spec_app/vendor/assets/bower_components/jquery/src/attributes/attr.js +0 -141
- data/spec_app/vendor/assets/bower_components/jquery/src/attributes/classes.js +0 -158
- data/spec_app/vendor/assets/bower_components/jquery/src/attributes/prop.js +0 -94
- data/spec_app/vendor/assets/bower_components/jquery/src/attributes/support.js +0 -35
- data/spec_app/vendor/assets/bower_components/jquery/src/attributes/val.js +0 -161
- data/spec_app/vendor/assets/bower_components/jquery/src/attributes.js +0 -11
- data/spec_app/vendor/assets/bower_components/jquery/src/callbacks.js +0 -205
- data/spec_app/vendor/assets/bower_components/jquery/src/core/access.js +0 -60
- data/spec_app/vendor/assets/bower_components/jquery/src/core/init.js +0 -123
- data/spec_app/vendor/assets/bower_components/jquery/src/core/parseHTML.js +0 -39
- data/spec_app/vendor/assets/bower_components/jquery/src/core/ready.js +0 -97
- data/spec_app/vendor/assets/bower_components/jquery/src/core/var/rsingleTag.js +0 -4
- data/spec_app/vendor/assets/bower_components/jquery/src/core.js +0 -502
- data/spec_app/vendor/assets/bower_components/jquery/src/css/addGetHookIf.js +0 -22
- data/spec_app/vendor/assets/bower_components/jquery/src/css/curCSS.js +0 -57
- data/spec_app/vendor/assets/bower_components/jquery/src/css/defaultDisplay.js +0 -70
- data/spec_app/vendor/assets/bower_components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
- data/spec_app/vendor/assets/bower_components/jquery/src/css/support.js +0 -96
- data/spec_app/vendor/assets/bower_components/jquery/src/css/swap.js +0 -28
- data/spec_app/vendor/assets/bower_components/jquery/src/css/var/cssExpand.js +0 -3
- data/spec_app/vendor/assets/bower_components/jquery/src/css/var/getStyles.js +0 -12
- data/spec_app/vendor/assets/bower_components/jquery/src/css/var/isHidden.js +0 -13
- data/spec_app/vendor/assets/bower_components/jquery/src/css/var/rmargin.js +0 -3
- data/spec_app/vendor/assets/bower_components/jquery/src/css/var/rnumnonpx.js +0 -5
- data/spec_app/vendor/assets/bower_components/jquery/src/css.js +0 -450
- data/spec_app/vendor/assets/bower_components/jquery/src/data/Data.js +0 -181
- data/spec_app/vendor/assets/bower_components/jquery/src/data/accepts.js +0 -20
- data/spec_app/vendor/assets/bower_components/jquery/src/data/var/data_priv.js +0 -5
- data/spec_app/vendor/assets/bower_components/jquery/src/data/var/data_user.js +0 -5
- data/spec_app/vendor/assets/bower_components/jquery/src/data.js +0 -178
- data/spec_app/vendor/assets/bower_components/jquery/src/deferred.js +0 -149
- data/spec_app/vendor/assets/bower_components/jquery/src/deprecated.js +0 -13
- data/spec_app/vendor/assets/bower_components/jquery/src/dimensions.js +0 -50
- data/spec_app/vendor/assets/bower_components/jquery/src/effects/Tween.js +0 -114
- data/spec_app/vendor/assets/bower_components/jquery/src/effects/animatedSelector.js +0 -13
- data/spec_app/vendor/assets/bower_components/jquery/src/effects.js +0 -648
- data/spec_app/vendor/assets/bower_components/jquery/src/event/ajax.js +0 -13
- data/spec_app/vendor/assets/bower_components/jquery/src/event/alias.js +0 -39
- data/spec_app/vendor/assets/bower_components/jquery/src/event/support.js +0 -9
- data/spec_app/vendor/assets/bower_components/jquery/src/event.js +0 -868
- data/spec_app/vendor/assets/bower_components/jquery/src/exports/amd.js +0 -24
- data/spec_app/vendor/assets/bower_components/jquery/src/exports/global.js +0 -32
- data/spec_app/vendor/assets/bower_components/jquery/src/intro.js +0 -44
- data/spec_app/vendor/assets/bower_components/jquery/src/jquery.js +0 -37
- data/spec_app/vendor/assets/bower_components/jquery/src/manipulation/_evalUrl.js +0 -18
- data/spec_app/vendor/assets/bower_components/jquery/src/manipulation/support.js +0 -32
- data/spec_app/vendor/assets/bower_components/jquery/src/manipulation/var/rcheckableType.js +0 -3
- data/spec_app/vendor/assets/bower_components/jquery/src/manipulation.js +0 -580
- data/spec_app/vendor/assets/bower_components/jquery/src/offset.js +0 -207
- data/spec_app/vendor/assets/bower_components/jquery/src/outro.js +0 -1
- data/spec_app/vendor/assets/bower_components/jquery/src/queue/delay.js +0 -22
- data/spec_app/vendor/assets/bower_components/jquery/src/queue.js +0 -142
- data/spec_app/vendor/assets/bower_components/jquery/src/selector-native.js +0 -172
- data/spec_app/vendor/assets/bower_components/jquery/src/selector-sizzle.js +0 -14
- data/spec_app/vendor/assets/bower_components/jquery/src/selector.js +0 -1
- data/spec_app/vendor/assets/bower_components/jquery/src/serialize.js +0 -111
- data/spec_app/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.js +0 -2067
- data/spec_app/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
- data/spec_app/vendor/assets/bower_components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
- data/spec_app/vendor/assets/bower_components/jquery/src/traversing/findFilter.js +0 -100
- data/spec_app/vendor/assets/bower_components/jquery/src/traversing/var/rneedsContext.js +0 -6
- data/spec_app/vendor/assets/bower_components/jquery/src/traversing.js +0 -199
- data/spec_app/vendor/assets/bower_components/jquery/src/var/arr.js +0 -3
- data/spec_app/vendor/assets/bower_components/jquery/src/var/class2type.js +0 -4
- data/spec_app/vendor/assets/bower_components/jquery/src/var/concat.js +0 -5
- data/spec_app/vendor/assets/bower_components/jquery/src/var/hasOwn.js +0 -5
- data/spec_app/vendor/assets/bower_components/jquery/src/var/indexOf.js +0 -5
- data/spec_app/vendor/assets/bower_components/jquery/src/var/pnum.js +0 -3
- data/spec_app/vendor/assets/bower_components/jquery/src/var/push.js +0 -5
- data/spec_app/vendor/assets/bower_components/jquery/src/var/rnotwhite.js +0 -3
- data/spec_app/vendor/assets/bower_components/jquery/src/var/slice.js +0 -5
- data/spec_app/vendor/assets/bower_components/jquery/src/var/strundefined.js +0 -3
- data/spec_app/vendor/assets/bower_components/jquery/src/var/support.js +0 -4
- data/spec_app/vendor/assets/bower_components/jquery/src/var/toString.js +0 -5
- data/spec_app/vendor/assets/bower_components/jquery/src/wrap.js +0 -79
- data/spec_app/vendor/assets/stylesheets/.keep +0 -0
@@ -1,73 +0,0 @@
|
|
1
|
-
<a name="README">[<img src="https://rawgithub.com/jasmine/jasmine/master/images/jasmine-horizontal.svg" width="400px" />](http://jasmine.github.io)</a>
|
2
|
-
|
3
|
-
[![Build Status](https://travis-ci.org/jasmine/jasmine.png?branch=master)](https://travis-ci.org/jasmine/jasmine) [![Code Climate](https://codeclimate.com/github/pivotal/jasmine.png)](https://codeclimate.com/github/pivotal/jasmine)
|
4
|
-
|
5
|
-
=======
|
6
|
-
|
7
|
-
**A JavaScript Testing Framework**
|
8
|
-
|
9
|
-
Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it's suited for websites, [Node.js](http://nodejs.org) projects, or anywhere that JavaScript can run.
|
10
|
-
|
11
|
-
Documentation & guides live here: [http://jasmine.github.io](http://jasmine.github.io/)
|
12
|
-
For a quick start guide of Jasmine 2.0, see the beginning of [http://jasmine.github.io/2.0/introduction.html](http://jasmine.github.io/2.0/introduction.html)
|
13
|
-
|
14
|
-
Upgrading from Jasmine 1.x? Check out the [2.0 release notes](https://github.com/jasmine/jasmine/blob/v2.0.0/release_notes/20.md) for a list of what's new (including breaking interface changes). You can also read the [upgrade guide](http://jasmine.github.io/2.0/upgrading.html).
|
15
|
-
|
16
|
-
## Contributing
|
17
|
-
|
18
|
-
Please read the [contributors' guide](https://github.com/jasmine/jasmine/blob/master/CONTRIBUTING.md)
|
19
|
-
|
20
|
-
## Installation
|
21
|
-
|
22
|
-
For the Jasmine NPM module:<br>
|
23
|
-
[https://github.com/jasmine/jasmine-npm](https://github.com/jasmine/jasmine-npm)
|
24
|
-
|
25
|
-
For the Jasmine Ruby Gem:<br>
|
26
|
-
[https://github.com/jasmine/jasmine-gem](https://github.com/jasmine/jasmine-gem)
|
27
|
-
|
28
|
-
For the Jasmine Python Egg:<br>
|
29
|
-
[https://github.com/jasmine/jasmine-py](https://github.com/jasmine/jasmine-py)
|
30
|
-
|
31
|
-
To install Jasmine standalone on your local box:
|
32
|
-
|
33
|
-
* Download the standalone distribution for your desired release from the [releases page](https://github.com/jasmine/jasmine/releases)
|
34
|
-
* Create a Jasmine directory in your project - `mkdir my-project/jasmine`
|
35
|
-
* Move the dist to your project directory - `mv jasmine/dist/jasmine-standalone-2.0.0.zip my-project/jasmine`
|
36
|
-
* Change directory - `cd my-project/jasmine`
|
37
|
-
* Unzip the dist - `unzip jasmine-standalone-2.0.0.zip`
|
38
|
-
|
39
|
-
Add the following to your HTML file:
|
40
|
-
|
41
|
-
<link rel="shortcut icon" type="image/png" href="jasmine/lib/jasmine-2.0.0/jasmine_favicon.png">
|
42
|
-
<link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine-2.0.0/jasmine.css">
|
43
|
-
|
44
|
-
<script type="text/javascript" src="jasmine/lib/jasmine-2.0.0/jasmine.js"></script>
|
45
|
-
<script type="text/javascript" src="jasmine/lib/jasmine-2.0.0/jasmine-html.js"></script>
|
46
|
-
<script type="text/javascript" src="jasmine/lib/jasmine-2.0.0/boot.js"></script>
|
47
|
-
|
48
|
-
## Supported environments
|
49
|
-
|
50
|
-
Jasmine tests itself across many browsers (Safari, Chrome, Firefox, PhantomJS, and new Internet Explorer) as well as node. To see the exact version tests are run against look at our [.travis.yml](https://github.com/jasmine/jasmine/blob/master/.travis.yml)
|
51
|
-
|
52
|
-
|
53
|
-
## Support
|
54
|
-
|
55
|
-
* Search past discussions: [http://groups.google.com/group/jasmine-js](http://groups.google.com/group/jasmine-js)
|
56
|
-
* Send an email to the list: [jasmine-js@googlegroups.com](mailto:jasmine-js@googlegroups.com)
|
57
|
-
* View the project backlog at Pivotal Tracker: [http://www.pivotaltracker.com/projects/10606](http://www.pivotaltracker.com/projects/10606)
|
58
|
-
* Follow us on Twitter: [@JasmineBDD](http://twitter.com/JasmineBDD)
|
59
|
-
|
60
|
-
## Maintainers
|
61
|
-
|
62
|
-
* [Davis W. Frank](mailto:dwfrank@pivotal.io), Pivotal Labs
|
63
|
-
* [Rajan Agaskar](mailto:rajan@pivotal.io), Pivotal Labs
|
64
|
-
* [Gregg Van Hove](mailto:gvanhove@pivotal.io), Pivotal Labs
|
65
|
-
* [Greg Cobb](mailto:gcobb@pivotal.io), Pivotal Labs
|
66
|
-
* [Chris Amavisca](mailto:camavisca@pivotal.io), Pivotal Labs
|
67
|
-
|
68
|
-
### Maintainers Emeritus
|
69
|
-
|
70
|
-
* [Christian Williams](mailto:antixian666@gmail.com), Cloud Foundry
|
71
|
-
* Sheel Choksi
|
72
|
-
|
73
|
-
Copyright (c) 2008-2015 Pivotal Labs. This software is licensed under the MIT License.
|
@@ -1,73 +0,0 @@
|
|
1
|
-
# How to work on a Jasmine Release
|
2
|
-
|
3
|
-
## Development
|
4
|
-
___Jasmine Core Maintainers Only___
|
5
|
-
|
6
|
-
Follow the instructions in `CONTRIBUTING.md` during development.
|
7
|
-
|
8
|
-
### Git Rules
|
9
|
-
|
10
|
-
Please work on feature branches.
|
11
|
-
|
12
|
-
Please attempt to keep commits to `master` small, but cohesive. If a feature is contained in a bunch of small commits (e.g., it has several wip commits or small work), please squash them when merging back to `master`.
|
13
|
-
|
14
|
-
### Version
|
15
|
-
|
16
|
-
We attempt to stick to [Semantic Versioning](http://semver.org/). Most of the time, development should be against a new minor version - fixing bugs and adding new features that are backwards compatible.
|
17
|
-
|
18
|
-
The current version lives in the file `/package.json`. This version will be the version number that is currently released. When releasing a new version, update `package.json` and `bower.json` with the new version and `grunt build:copyVersionToGem` to update the gem version number.
|
19
|
-
|
20
|
-
This version is used by both `jasmine.js` and the `jasmine-core` Ruby gem.
|
21
|
-
|
22
|
-
Note that Jasmine should only use the "patch" version number in the following cases:
|
23
|
-
|
24
|
-
* Changes related to packaging for a specific platform (npm, gem, or pip).
|
25
|
-
* Fixes for regressions.
|
26
|
-
|
27
|
-
When jasmine-core revs its major or minor version, the binding libraries should also rev to that version.
|
28
|
-
|
29
|
-
## Release
|
30
|
-
|
31
|
-
When ready to release - specs are all green and the stories are done:
|
32
|
-
|
33
|
-
1. Update the release notes in `release_notes` - use the Anchorman gem to generate the markdown file and edit accordingly
|
34
|
-
1. Update the version in `package.json` to a release candidate
|
35
|
-
1. Update any links or top-level landing page for the Github Pages
|
36
|
-
|
37
|
-
### Build standalone distribution
|
38
|
-
|
39
|
-
1. Build the standalone distribution with `grunt buildStandaloneDist`
|
40
|
-
|
41
|
-
### Release the Python egg
|
42
|
-
|
43
|
-
1. `python setup.py register sdist upload` You will need pypi credentials to upload the egg.
|
44
|
-
|
45
|
-
### Release the Ruby gem
|
46
|
-
|
47
|
-
1. Copy version to the Ruby gem with `grunt build:copyVersionToGem`
|
48
|
-
1. __NOTE__: You will likely need to point to a local jasmine gem in order to run tests locally. _Do not_ push this version of the Gemfile.
|
49
|
-
1. __NOTE__: You will likely need to push a new jasmine gem with a dependent version right after this release.
|
50
|
-
1. Push these changes to GitHub and verify that this SHA is green
|
51
|
-
1. `rake release` - tags the repo with the version, builds the `jasmine-core` gem, pushes the gem to Rubygems.org. In order to release you will have to ensure you have rubygems creds locally.
|
52
|
-
|
53
|
-
### Release the NPM
|
54
|
-
|
55
|
-
1. `npm adduser` to save your credentials locally
|
56
|
-
1. `npm publish .` to publish what's in `package.json`
|
57
|
-
|
58
|
-
### Release the docs
|
59
|
-
|
60
|
-
Probably only need to do this when releasing a minor version, and not a patch version.
|
61
|
-
|
62
|
-
1. `cp -R edge ${version}` to copy the current edge docs to the new version
|
63
|
-
1. Add a link to the new version in `index.html`
|
64
|
-
|
65
|
-
### Finally
|
66
|
-
|
67
|
-
1. Visit the [Releases page for Jasmine](https://github.com/jasmine/jasmine/releases), find the tag just pushed.
|
68
|
-
1. Paste in a link to the correct release notes for this release. The link should reference the blob and tag correctly, and the markdown file for the notes.
|
69
|
-
1. If it is a pre-release, mark it as such.
|
70
|
-
1. Attach the standalone zipfile
|
71
|
-
|
72
|
-
|
73
|
-
There should be a post to Pivotal Labs blog and a tweet to that link.
|
@@ -1,41 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "jasmine-core",
|
3
|
-
"version": "2.3.4",
|
4
|
-
"homepage": "http://jasmine.github.io",
|
5
|
-
"authors": [
|
6
|
-
"slackersoft <gregg@slackersoft.net>"
|
7
|
-
],
|
8
|
-
"description": "Official packaging of Jasmine's core files",
|
9
|
-
"keywords": [
|
10
|
-
"test",
|
11
|
-
"jasmine",
|
12
|
-
"tdd",
|
13
|
-
"bdd"
|
14
|
-
],
|
15
|
-
"license": "MIT",
|
16
|
-
"moduleType": "globals",
|
17
|
-
"main": "lib/jasmine-core/jasmine.js",
|
18
|
-
"ignore": [
|
19
|
-
"**/.*",
|
20
|
-
"dist",
|
21
|
-
"grunt",
|
22
|
-
"node_modules",
|
23
|
-
"pkg",
|
24
|
-
"release_notes",
|
25
|
-
"spec",
|
26
|
-
"src",
|
27
|
-
"Gemfile",
|
28
|
-
"Gemfile.lock",
|
29
|
-
"Rakefile",
|
30
|
-
"jasmine-core.gemspec",
|
31
|
-
"*.sh",
|
32
|
-
"*.py",
|
33
|
-
"Gruntfile.js",
|
34
|
-
"lib/jasmine-core.rb",
|
35
|
-
"lib/jasmine-core/boot/",
|
36
|
-
"lib/jasmine-core/spec",
|
37
|
-
"lib/jasmine-core/version.rb",
|
38
|
-
"lib/jasmine-core/*.py",
|
39
|
-
"sauce_connect.log"
|
40
|
-
]
|
41
|
-
}
|
Binary file
|
@@ -1,102 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
-
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
3
|
-
|
4
|
-
<svg
|
5
|
-
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
6
|
-
xmlns:cc="http://creativecommons.org/ns#"
|
7
|
-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
8
|
-
xmlns:svg="http://www.w3.org/2000/svg"
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
10
|
-
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
11
|
-
version="1.1"
|
12
|
-
width="681.96252"
|
13
|
-
height="187.5"
|
14
|
-
id="svg2"
|
15
|
-
xml:space="preserve"><metadata
|
16
|
-
id="metadata8"><rdf:RDF><cc:Work
|
17
|
-
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
18
|
-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /></cc:Work></rdf:RDF></metadata><defs
|
19
|
-
id="defs6"><clipPath
|
20
|
-
id="clipPath18"><path
|
21
|
-
d="M 0,1500 0,0 l 5455.74,0 0,1500 L 0,1500 z"
|
22
|
-
inkscape:connector-curvature="0"
|
23
|
-
id="path20" /></clipPath></defs><g
|
24
|
-
transform="matrix(1.25,0,0,-1.25,0,187.5)"
|
25
|
-
id="g10"><g
|
26
|
-
transform="scale(0.1,0.1)"
|
27
|
-
id="g12"><g
|
28
|
-
id="g14"><g
|
29
|
-
clip-path="url(#clipPath18)"
|
30
|
-
id="g16"><path
|
31
|
-
d="m 1544,599.434 c 0.92,-40.352 25.68,-81.602 71.53,-81.602 27.51,0 47.68,12.832 61.44,35.754 12.83,22.93 12.83,56.852 12.83,82.527 l 0,329.184 -71.52,0 0,104.543 266.83,0 0,-104.543 -70.6,0 0,-344.77 c 0,-58.691 -3.68,-104.531 -44.93,-152.218 -36.68,-42.18 -96.28,-66.02 -153.14,-66.02 -117.37,0 -207.24,77.941 -202.64,197.145 l 130.2,0"
|
32
|
-
inkscape:connector-curvature="0"
|
33
|
-
id="path22"
|
34
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
35
|
-
d="m 2301.4,662.695 c 0,80.703 -66.94,145.813 -147.63,145.813 -83.44,0 -147.63,-68.781 -147.63,-151.301 0,-79.785 66.94,-145.801 145.8,-145.801 84.35,0 149.46,67.852 149.46,151.289 z m -1.83,-181.547 c -35.77,-54.097 -93.53,-78.859 -157.72,-78.859 -140.3,0 -251.24,116.449 -251.24,254.918 0,142.129 113.7,260.41 256.74,260.41 63.27,0 118.29,-29.336 152.22,-82.523 l 0,69.687 175.14,0 0,-104.527 -61.44,0 0,-280.598 61.44,0 0,-104.527 -175.14,0 0,66.019"
|
36
|
-
inkscape:connector-curvature="0"
|
37
|
-
id="path24"
|
38
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
39
|
-
d="m 2622.33,557.258 c 3.67,-44.016 33.01,-73.348 78.86,-73.348 33.93,0 66.93,23.824 66.93,60.504 0,48.606 -45.84,56.856 -83.44,66.941 -85.28,22.004 -178.81,48.606 -178.81,155.879 0,93.536 78.86,147.633 165.98,147.633 44,0 83.43,-9.176 110.94,-44.008 l 0,33.922 82.53,0 0,-132.965 -108.21,0 c -1.83,34.856 -28.42,57.774 -63.26,57.774 -30.26,0 -62.35,-17.422 -62.35,-51.348 0,-45.847 44.93,-55.93 80.69,-64.18 88.02,-20.175 182.47,-47.695 182.47,-157.734 0,-99.027 -83.44,-154.039 -175.13,-154.039 -49.53,0 -94.46,15.582 -126.55,53.18 l 0,-40.34 -85.27,0 0,142.129 114.62,0"
|
40
|
-
inkscape:connector-curvature="0"
|
41
|
-
id="path26"
|
42
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
43
|
-
d="m 2988.18,800.254 -63.26,0 0,104.527 165.05,0 0,-73.355 c 31.18,51.347 78.86,85.277 141.21,85.277 67.85,0 124.71,-41.258 152.21,-102.699 26.6,62.351 92.62,102.699 160.47,102.699 53.19,0 105.46,-22 141.21,-62.351 38.52,-44.938 38.52,-93.532 38.52,-149.457 l 0,-185.239 63.27,0 0,-104.527 -238.42,0 0,104.527 63.28,0 0,157.715 c 0,32.102 0,60.527 -14.67,88.957 -18.34,26.582 -48.61,40.344 -79.77,40.344 -30.26,0 -63.28,-12.844 -82.53,-36.672 -22.93,-29.355 -22.93,-56.863 -22.93,-92.629 l 0,-157.715 63.27,0 0,-104.527 -238.41,0 0,104.527 63.28,0 0,150.383 c 0,29.348 0,66.023 -14.67,91.699 -15.59,29.336 -47.69,44.934 -80.7,44.934 -31.18,0 -57.77,-11.008 -77.94,-35.774 -24.77,-30.253 -26.6,-62.343 -26.6,-99.941 l 0,-151.301 63.27,0 0,-104.527 -238.4,0 0,104.527 63.26,0 0,280.598"
|
44
|
-
inkscape:connector-curvature="0"
|
45
|
-
id="path28"
|
46
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
47
|
-
d="m 3998.66,951.547 -111.87,0 0,118.293 111.87,0 0,-118.293 z m 0,-431.891 63.27,0 0,-104.527 -239.33,0 0,104.527 64.19,0 0,280.598 -63.27,0 0,104.527 175.14,0 0,-385.125"
|
48
|
-
inkscape:connector-curvature="0"
|
49
|
-
id="path30"
|
50
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
51
|
-
d="m 4159.12,800.254 -63.27,0 0,104.527 175.14,0 0,-69.687 c 29.35,54.101 84.36,80.699 144.87,80.699 53.19,0 105.45,-22.016 141.22,-60.527 40.34,-44.934 41.26,-88.032 41.26,-143.957 l 0,-191.653 63.27,0 0,-104.527 -238.4,0 0,104.527 63.26,0 0,158.637 c 0,30.262 0,61.434 -19.26,88.035 -20.17,26.582 -53.18,39.414 -86.19,39.414 -33.93,0 -68.77,-13.75 -88.94,-41.25 -21.09,-27.5 -21.09,-69.687 -21.09,-102.707 l 0,-142.129 63.26,0 0,-104.527 -238.4,0 0,104.527 63.27,0 0,280.598"
|
52
|
-
inkscape:connector-curvature="0"
|
53
|
-
id="path32"
|
54
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
55
|
-
d="m 5082.48,703.965 c -19.24,70.605 -81.6,115.547 -154.04,115.547 -66.04,0 -129.3,-51.348 -143.05,-115.547 l 297.09,0 z m 85.27,-144.883 c -38.51,-93.523 -129.27,-156.793 -231.05,-156.793 -143.07,0 -257.68,111.871 -257.68,255.836 0,144.883 109.12,261.328 254.91,261.328 67.87,0 135.72,-30.258 183.39,-78.863 48.62,-51.344 68.79,-113.695 68.79,-183.383 l -3.67,-39.434 -396.13,0 c 14.67,-67.863 77.03,-117.363 146.72,-117.363 48.59,0 90.76,18.328 118.28,58.672 l 116.44,0"
|
56
|
-
inkscape:connector-curvature="0"
|
57
|
-
id="path34"
|
58
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
59
|
-
d="m 690.895,850.703 90.75,0 22.543,31.035 0,243.122 -135.829,0 0,-243.141 22.536,-31.016"
|
60
|
-
inkscape:connector-curvature="0"
|
61
|
-
id="path36"
|
62
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
63
|
-
d="m 632.395,742.258 28.039,86.304 -22.551,31.04 -231.223,75.128 -41.976,-129.183 231.257,-75.137 36.454,11.848"
|
64
|
-
inkscape:connector-curvature="0"
|
65
|
-
id="path38"
|
66
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
67
|
-
d="m 717.449,653.105 -73.41,53.36 -36.488,-11.875 -142.903,-196.692 109.883,-79.828 142.918,196.703 0,38.332"
|
68
|
-
inkscape:connector-curvature="0"
|
69
|
-
id="path40"
|
70
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
71
|
-
d="m 828.52,706.465 -73.426,-53.34 0.011,-38.359 L 898.004,418.07 1007.9,497.898 864.973,694.609 828.52,706.465"
|
72
|
-
inkscape:connector-curvature="0"
|
73
|
-
id="path42"
|
74
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
75
|
-
d="m 812.086,828.586 28.055,-86.32 36.484,-11.836 231.225,75.117 -41.97,129.183 -231.239,-75.14 -22.555,-31.004"
|
76
|
-
inkscape:connector-curvature="0"
|
77
|
-
id="path44"
|
78
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
79
|
-
d="m 736.301,1335.88 c -323.047,0 -585.875,-262.78 -585.875,-585.782 0,-323.118 262.828,-585.977 585.875,-585.977 323.019,0 585.809,262.859 585.809,585.977 0,323.002 -262.79,585.782 -585.809,585.782 l 0,0 z m 0,-118.61 c 257.972,0 467.189,-209.13 467.189,-467.172 0,-258.129 -209.217,-467.348 -467.189,-467.348 -258.074,0 -467.254,209.219 -467.254,467.348 0,258.042 209.18,467.172 467.254,467.172"
|
80
|
-
inkscape:connector-curvature="0"
|
81
|
-
id="path46"
|
82
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
83
|
-
d="m 1091.13,619.883 -175.771,57.121 11.629,35.808 175.762,-57.121 -11.62,-35.808"
|
84
|
-
inkscape:connector-curvature="0"
|
85
|
-
id="path48"
|
86
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
87
|
-
d="M 866.957,902.074 836.5,924.199 945.121,1073.73 975.586,1051.61 866.957,902.074"
|
88
|
-
inkscape:connector-curvature="0"
|
89
|
-
id="path50"
|
90
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
91
|
-
d="M 607.465,903.445 498.855,1052.97 529.32,1075.1 637.93,925.566 607.465,903.445"
|
92
|
-
inkscape:connector-curvature="0"
|
93
|
-
id="path52"
|
94
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
95
|
-
d="m 380.688,622.129 -11.626,35.801 175.758,57.09 11.621,-35.801 -175.753,-57.09"
|
96
|
-
inkscape:connector-curvature="0"
|
97
|
-
id="path54"
|
98
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /><path
|
99
|
-
d="m 716.289,376.59 37.6406,0 0,184.816 -37.6406,0 0,-184.816 z"
|
100
|
-
inkscape:connector-curvature="0"
|
101
|
-
id="path56"
|
102
|
-
style="fill:#8a4182;fill-opacity:1;fill-rule:nonzero;stroke:none" /></g></g></g></g></svg>
|
Binary file
|
@@ -1,190 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2008-2015 Pivotal Labs
|
3
|
-
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
5
|
-
a copy of this software and associated documentation files (the
|
6
|
-
"Software"), to deal in the Software without restriction, including
|
7
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
8
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
-
permit persons to whom the Software is furnished to do so, subject to
|
10
|
-
the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be
|
13
|
-
included in all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
-
*/
|
23
|
-
function getJasmineRequireObj() {
|
24
|
-
if (typeof module !== 'undefined' && module.exports) {
|
25
|
-
return exports;
|
26
|
-
} else {
|
27
|
-
window.jasmineRequire = window.jasmineRequire || {};
|
28
|
-
return window.jasmineRequire;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
|
32
|
-
getJasmineRequireObj().console = function(jRequire, j$) {
|
33
|
-
j$.ConsoleReporter = jRequire.ConsoleReporter();
|
34
|
-
};
|
35
|
-
|
36
|
-
getJasmineRequireObj().ConsoleReporter = function() {
|
37
|
-
|
38
|
-
var noopTimer = {
|
39
|
-
start: function(){},
|
40
|
-
elapsed: function(){ return 0; }
|
41
|
-
};
|
42
|
-
|
43
|
-
function ConsoleReporter(options) {
|
44
|
-
var print = options.print,
|
45
|
-
showColors = options.showColors || false,
|
46
|
-
onComplete = options.onComplete || function() {},
|
47
|
-
timer = options.timer || noopTimer,
|
48
|
-
specCount,
|
49
|
-
failureCount,
|
50
|
-
failedSpecs = [],
|
51
|
-
pendingCount,
|
52
|
-
ansi = {
|
53
|
-
green: '\x1B[32m',
|
54
|
-
red: '\x1B[31m',
|
55
|
-
yellow: '\x1B[33m',
|
56
|
-
none: '\x1B[0m'
|
57
|
-
},
|
58
|
-
failedSuites = [];
|
59
|
-
|
60
|
-
print('ConsoleReporter is deprecated and will be removed in a future version.');
|
61
|
-
|
62
|
-
this.jasmineStarted = function() {
|
63
|
-
specCount = 0;
|
64
|
-
failureCount = 0;
|
65
|
-
pendingCount = 0;
|
66
|
-
print('Started');
|
67
|
-
printNewline();
|
68
|
-
timer.start();
|
69
|
-
};
|
70
|
-
|
71
|
-
this.jasmineDone = function() {
|
72
|
-
printNewline();
|
73
|
-
for (var i = 0; i < failedSpecs.length; i++) {
|
74
|
-
specFailureDetails(failedSpecs[i]);
|
75
|
-
}
|
76
|
-
|
77
|
-
if(specCount > 0) {
|
78
|
-
printNewline();
|
79
|
-
|
80
|
-
var specCounts = specCount + ' ' + plural('spec', specCount) + ', ' +
|
81
|
-
failureCount + ' ' + plural('failure', failureCount);
|
82
|
-
|
83
|
-
if (pendingCount) {
|
84
|
-
specCounts += ', ' + pendingCount + ' pending ' + plural('spec', pendingCount);
|
85
|
-
}
|
86
|
-
|
87
|
-
print(specCounts);
|
88
|
-
} else {
|
89
|
-
print('No specs found');
|
90
|
-
}
|
91
|
-
|
92
|
-
printNewline();
|
93
|
-
var seconds = timer.elapsed() / 1000;
|
94
|
-
print('Finished in ' + seconds + ' ' + plural('second', seconds));
|
95
|
-
printNewline();
|
96
|
-
|
97
|
-
for(i = 0; i < failedSuites.length; i++) {
|
98
|
-
suiteFailureDetails(failedSuites[i]);
|
99
|
-
}
|
100
|
-
|
101
|
-
onComplete(failureCount === 0);
|
102
|
-
};
|
103
|
-
|
104
|
-
this.specDone = function(result) {
|
105
|
-
specCount++;
|
106
|
-
|
107
|
-
if (result.status == 'pending') {
|
108
|
-
pendingCount++;
|
109
|
-
print(colored('yellow', '*'));
|
110
|
-
return;
|
111
|
-
}
|
112
|
-
|
113
|
-
if (result.status == 'passed') {
|
114
|
-
print(colored('green', '.'));
|
115
|
-
return;
|
116
|
-
}
|
117
|
-
|
118
|
-
if (result.status == 'failed') {
|
119
|
-
failureCount++;
|
120
|
-
failedSpecs.push(result);
|
121
|
-
print(colored('red', 'F'));
|
122
|
-
}
|
123
|
-
};
|
124
|
-
|
125
|
-
this.suiteDone = function(result) {
|
126
|
-
if (result.failedExpectations && result.failedExpectations.length > 0) {
|
127
|
-
failureCount++;
|
128
|
-
failedSuites.push(result);
|
129
|
-
}
|
130
|
-
};
|
131
|
-
|
132
|
-
return this;
|
133
|
-
|
134
|
-
function printNewline() {
|
135
|
-
print('\n');
|
136
|
-
}
|
137
|
-
|
138
|
-
function colored(color, str) {
|
139
|
-
return showColors ? (ansi[color] + str + ansi.none) : str;
|
140
|
-
}
|
141
|
-
|
142
|
-
function plural(str, count) {
|
143
|
-
return count == 1 ? str : str + 's';
|
144
|
-
}
|
145
|
-
|
146
|
-
function repeat(thing, times) {
|
147
|
-
var arr = [];
|
148
|
-
for (var i = 0; i < times; i++) {
|
149
|
-
arr.push(thing);
|
150
|
-
}
|
151
|
-
return arr;
|
152
|
-
}
|
153
|
-
|
154
|
-
function indent(str, spaces) {
|
155
|
-
var lines = (str || '').split('\n');
|
156
|
-
var newArr = [];
|
157
|
-
for (var i = 0; i < lines.length; i++) {
|
158
|
-
newArr.push(repeat(' ', spaces).join('') + lines[i]);
|
159
|
-
}
|
160
|
-
return newArr.join('\n');
|
161
|
-
}
|
162
|
-
|
163
|
-
function specFailureDetails(result) {
|
164
|
-
printNewline();
|
165
|
-
print(result.fullName);
|
166
|
-
|
167
|
-
for (var i = 0; i < result.failedExpectations.length; i++) {
|
168
|
-
var failedExpectation = result.failedExpectations[i];
|
169
|
-
printNewline();
|
170
|
-
print(indent(failedExpectation.message, 2));
|
171
|
-
print(indent(failedExpectation.stack, 2));
|
172
|
-
}
|
173
|
-
|
174
|
-
printNewline();
|
175
|
-
}
|
176
|
-
|
177
|
-
function suiteFailureDetails(result) {
|
178
|
-
for (var i = 0; i < result.failedExpectations.length; i++) {
|
179
|
-
printNewline();
|
180
|
-
print(colored('red', 'An error was thrown in an afterAll'));
|
181
|
-
printNewline();
|
182
|
-
print(colored('red', 'AfterAll ' + result.failedExpectations[i].message));
|
183
|
-
|
184
|
-
}
|
185
|
-
printNewline();
|
186
|
-
}
|
187
|
-
}
|
188
|
-
|
189
|
-
return ConsoleReporter;
|
190
|
-
};
|
@@ -1,143 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Copyright (c) 2008-2015 Pivotal Labs
|
3
|
-
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
5
|
-
a copy of this software and associated documentation files (the
|
6
|
-
"Software"), to deal in the Software without restriction, including
|
7
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
8
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
9
|
-
permit persons to whom the Software is furnished to do so, subject to
|
10
|
-
the following conditions:
|
11
|
-
|
12
|
-
The above copyright notice and this permission notice shall be
|
13
|
-
included in all copies or substantial portions of the Software.
|
14
|
-
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
17
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
19
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
22
|
-
*/
|
23
|
-
/**
|
24
|
-
Starting with version 2.0, this file "boots" Jasmine, performing all of the necessary initialization before executing the loaded environment and all of a project's specs. This file should be loaded after `jasmine.js` and `jasmine_html.js`, but before any project source files or spec files are loaded. Thus this file can also be used to customize Jasmine for a project.
|
25
|
-
|
26
|
-
If a project is using Jasmine via the standalone distribution, this file can be customized directly. If a project is using Jasmine via the [Ruby gem][jasmine-gem], this file can be copied into the support directory via `jasmine copy_boot_js`. Other environments (e.g., Python) will have different mechanisms.
|
27
|
-
|
28
|
-
The location of `boot.js` can be specified and/or overridden in `jasmine.yml`.
|
29
|
-
|
30
|
-
[jasmine-gem]: http://github.com/pivotal/jasmine-gem
|
31
|
-
*/
|
32
|
-
|
33
|
-
(function() {
|
34
|
-
|
35
|
-
/**
|
36
|
-
* ## Require & Instantiate
|
37
|
-
*
|
38
|
-
* Require Jasmine's core files. Specifically, this requires and attaches all of Jasmine's code to the `jasmine` reference.
|
39
|
-
*/
|
40
|
-
window.jasmine = jasmineRequire.core(jasmineRequire);
|
41
|
-
|
42
|
-
/**
|
43
|
-
* Since this is being run in a browser and the results should populate to an HTML page, require the HTML-specific Jasmine code, injecting the same reference.
|
44
|
-
*/
|
45
|
-
jasmineRequire.html(jasmine);
|
46
|
-
|
47
|
-
/**
|
48
|
-
* Create the Jasmine environment. This is used to run all specs in a project.
|
49
|
-
*/
|
50
|
-
var env = jasmine.getEnv();
|
51
|
-
|
52
|
-
/**
|
53
|
-
* ## The Global Interface
|
54
|
-
*
|
55
|
-
* Build up the functions that will be exposed as the Jasmine public interface. A project can customize, rename or alias any of these functions as desired, provided the implementation remains unchanged.
|
56
|
-
*/
|
57
|
-
var jasmineInterface = jasmineRequire.interface(jasmine, env);
|
58
|
-
|
59
|
-
/**
|
60
|
-
* Add all of the Jasmine global/public interface to the global scope, so a project can use the public interface directly. For example, calling `describe` in specs instead of `jasmine.getEnv().describe`.
|
61
|
-
*/
|
62
|
-
extend(window, jasmineInterface);
|
63
|
-
|
64
|
-
/**
|
65
|
-
* ## Runner Parameters
|
66
|
-
*
|
67
|
-
* More browser specific code - wrap the query string in an object and to allow for getting/setting parameters from the runner user interface.
|
68
|
-
*/
|
69
|
-
|
70
|
-
var queryString = new jasmine.QueryString({
|
71
|
-
getWindowLocation: function() { return window.location; }
|
72
|
-
});
|
73
|
-
|
74
|
-
var catchingExceptions = queryString.getParam("catch");
|
75
|
-
env.catchExceptions(typeof catchingExceptions === "undefined" ? true : catchingExceptions);
|
76
|
-
|
77
|
-
var throwingExpectationFailures = queryString.getParam("throwFailures");
|
78
|
-
env.throwOnExpectationFailure(throwingExpectationFailures);
|
79
|
-
|
80
|
-
/**
|
81
|
-
* ## Reporters
|
82
|
-
* The `HtmlReporter` builds all of the HTML UI for the runner page. This reporter paints the dots, stars, and x's for specs, as well as all spec names and all failures (if any).
|
83
|
-
*/
|
84
|
-
var htmlReporter = new jasmine.HtmlReporter({
|
85
|
-
env: env,
|
86
|
-
onRaiseExceptionsClick: function() { queryString.navigateWithNewParam("catch", !env.catchingExceptions()); },
|
87
|
-
onThrowExpectationsClick: function() { queryString.navigateWithNewParam("throwFailures", !env.throwingExpectationFailures()); },
|
88
|
-
addToExistingQueryString: function(key, value) { return queryString.fullStringWithNewParam(key, value); },
|
89
|
-
getContainer: function() { return document.body; },
|
90
|
-
createElement: function() { return document.createElement.apply(document, arguments); },
|
91
|
-
createTextNode: function() { return document.createTextNode.apply(document, arguments); },
|
92
|
-
timer: new jasmine.Timer()
|
93
|
-
});
|
94
|
-
|
95
|
-
/**
|
96
|
-
* The `jsApiReporter` also receives spec results, and is used by any environment that needs to extract the results from JavaScript.
|
97
|
-
*/
|
98
|
-
env.addReporter(jasmineInterface.jsApiReporter);
|
99
|
-
env.addReporter(htmlReporter);
|
100
|
-
|
101
|
-
/**
|
102
|
-
* Filter which specs will be run by matching the start of the full name against the `spec` query param.
|
103
|
-
*/
|
104
|
-
var specFilter = new jasmine.HtmlSpecFilter({
|
105
|
-
filterString: function() { return queryString.getParam("spec"); }
|
106
|
-
});
|
107
|
-
|
108
|
-
env.specFilter = function(spec) {
|
109
|
-
return specFilter.matches(spec.getFullName());
|
110
|
-
};
|
111
|
-
|
112
|
-
/**
|
113
|
-
* Setting up timing functions to be able to be overridden. Certain browsers (Safari, IE 8, phantomjs) require this hack.
|
114
|
-
*/
|
115
|
-
window.setTimeout = window.setTimeout;
|
116
|
-
window.setInterval = window.setInterval;
|
117
|
-
window.clearTimeout = window.clearTimeout;
|
118
|
-
window.clearInterval = window.clearInterval;
|
119
|
-
|
120
|
-
/**
|
121
|
-
* ## Execution
|
122
|
-
*
|
123
|
-
* Replace the browser window's `onload`, ensure it's called, and then run all of the loaded specs. This includes initializing the `HtmlReporter` instance and then executing the loaded Jasmine environment. All of this will happen after all of the specs are loaded.
|
124
|
-
*/
|
125
|
-
var currentWindowOnload = window.onload;
|
126
|
-
|
127
|
-
window.onload = function() {
|
128
|
-
if (currentWindowOnload) {
|
129
|
-
currentWindowOnload();
|
130
|
-
}
|
131
|
-
htmlReporter.initialize();
|
132
|
-
env.execute();
|
133
|
-
};
|
134
|
-
|
135
|
-
/**
|
136
|
-
* Helper function for readability above.
|
137
|
-
*/
|
138
|
-
function extend(destination, source) {
|
139
|
-
for (var property in source) destination[property] = source[property];
|
140
|
-
return destination;
|
141
|
-
}
|
142
|
-
|
143
|
-
}());
|
@@ -1,24 +0,0 @@
|
|
1
|
-
function Player() {
|
2
|
-
}
|
3
|
-
Player.prototype.play = function(song) {
|
4
|
-
this.currentlyPlayingSong = song;
|
5
|
-
this.isPlaying = true;
|
6
|
-
};
|
7
|
-
|
8
|
-
Player.prototype.pause = function() {
|
9
|
-
this.isPlaying = false;
|
10
|
-
};
|
11
|
-
|
12
|
-
Player.prototype.resume = function() {
|
13
|
-
if (this.isPlaying) {
|
14
|
-
throw new Error("song is already playing");
|
15
|
-
}
|
16
|
-
|
17
|
-
this.isPlaying = true;
|
18
|
-
};
|
19
|
-
|
20
|
-
Player.prototype.makeFavorite = function() {
|
21
|
-
this.currentlyPlayingSong.persistFavoriteStatus(true);
|
22
|
-
};
|
23
|
-
|
24
|
-
module.exports = Player;
|