jasmine-core
Advanced tools
Comparing version 2.2.0 to 2.3.0
{ | ||
"name": "jasmine-core", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"homepage": "http://jasmine.github.io", | ||
@@ -10,3 +10,5 @@ "authors": [ | ||
"keywords": [ | ||
"test", | ||
"jasmine", | ||
"tdd", | ||
"bdd" | ||
@@ -16,2 +18,3 @@ ], | ||
"moduleType": "globals", | ||
"main": "lib/jasmine-core.js", | ||
"ignore": [ | ||
@@ -32,3 +35,3 @@ "**/.*", | ||
"*.py", | ||
"Gruntfile.js" | ||
"Gruntfile.js", | ||
"lib/jasmine-core.rb", | ||
@@ -35,0 +38,0 @@ "lib/jasmine-core/boot/", |
# Developing for Jasmine Core | ||
We welcome your contributions - Thanks for helping make Jasmine a better project for everyone. Please review the backlog and discussion lists (the main group - [http://groups.google.com/group/jasmine-js](http://groups.google.com/group/jasmine-js) and the developer's list - [http://groups.google.com/group/jasmine-js-dev](http://groups.google.com/group/jasmine-js-dev)) before starting work - what you're looking for may already have been done. If it hasn't, the community can help make your contribution better. | ||
We welcome your contributions! Thanks for helping make Jasmine a better project for everyone. Please review the backlog and discussion lists before starting work. What you're looking for may already have been done. If it hasn't, the community can help make your contribution better. | ||
## Links | ||
- [Jasmine Google Group](http://groups.google.com/group/jasmine-js) | ||
- [Jasmine-dev Google Group](http://groups.google.com/group/jasmine-js-dev) | ||
- [Jasmine on PivotalTracker](https://www.pivotaltracker.com/n/projects/10606) | ||
## General Workflow | ||
@@ -9,14 +15,13 @@ | ||
1. Fork it | ||
1. Clone your fork: (`git clone git@github.com:yourUserName/jasmine.git`) | ||
1. Change directory: (`cd jasmine`) | ||
1. Assign original repository to a remote named 'upstream': (`git remote add | ||
upstream https://github.com/jasmine/jasmine.git`) | ||
1. Pull in changes not present in your local repository: (`git fetch upstream`) | ||
1. Create your feature branch (`git checkout -b my-new-feature`) | ||
1. Commit your changes (`git commit -am 'Add some feature'`) | ||
1. Push to the branch (`git push origin my-new-feature`) | ||
1. Create new Pull Request | ||
```bash | ||
git clone git@github.com:yourUserName/jasmine.git # Clone your fork | ||
cd jasmine # Change directory | ||
git remote add upstream https://github.com/jasmine/jasmine.git # Assign original repository to a remote named 'upstream' | ||
git fetch upstream # Pull in changes not present in your local repository | ||
git checkout -b my-new-feature # Create your feature branch | ||
git commit -am 'Add some feature' # Commit your changes | ||
git push origin my-new-feature # Push to the branch | ||
``` | ||
We favor pull requests with very small, single commits with a single purpose. | ||
Once you've pushed a feature branch to your forked repo, you're ready to open a pull request. We favor pull requests with very small, single commits with a single purpose. | ||
@@ -122,6 +127,6 @@ ## Background | ||
1. Revert your changes to `jasmine.js` and `jasmine-html.js` | ||
* We do this because `jasmine.js` and `jasmine-html.js` are auto-generated (as you've seen in the previous steps) and accepting multiple pull requests when this auto-generated file changes causes lots of headaches. | ||
1. When we accept your pull request, we will generate these files as a separate commit and merge the entire branch into master. | ||
* We do this because `jasmine.js` and `jasmine-html.js` are auto-generated (as you've seen in the previous steps) and accepting multiple pull requests when this auto-generated file changes causes lots of headaches | ||
1. When we accept your pull request, we will generate these files as a separate commit and merge the entire branch into master | ||
Note that we use Travis for Continuous Integration. We only accept green pull requests. | ||
@@ -60,9 +60,5 @@ /* | ||
/** | ||
* Add all of the Jasmine global/public interface to the proper global, so a project can use the public interface directly. For example, calling `describe` in specs instead of `jasmine.getEnv().describe`. | ||
* 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`. | ||
*/ | ||
if (typeof window == "undefined" && typeof exports == "object") { | ||
extend(exports, jasmineInterface); | ||
} else { | ||
extend(window, jasmineInterface); | ||
} | ||
extend(window, jasmineInterface); | ||
@@ -82,2 +78,5 @@ /** | ||
var throwingExpectationFailures = queryString.getParam("throwFailures"); | ||
env.throwOnExpectationFailure(throwingExpectationFailures); | ||
/** | ||
@@ -90,2 +89,3 @@ * ## Reporters | ||
onRaiseExceptionsClick: function() { queryString.navigateWithNewParam("catch", !env.catchingExceptions()); }, | ||
onThrowExpectationsClick: function() { queryString.navigateWithNewParam("throwFailures", !env.throwingExpectationFailures()); }, | ||
addToExistingQueryString: function(key, value) { return queryString.fullStringWithNewParam(key, value); }, | ||
@@ -92,0 +92,0 @@ getContainer: function() { return document.body; }, |
@@ -10,3 +10,3 @@ beforeEach(function () { | ||
pass: player.currentlyPlayingSong === expected && player.isPlaying | ||
} | ||
}; | ||
} | ||
@@ -13,0 +13,0 @@ }; |
@@ -43,2 +43,3 @@ /* | ||
onRaiseExceptionsClick = options.onRaiseExceptionsClick || function() {}, | ||
onThrowExpectationsClick = options.onThrowExpectationsClick || function() {}, | ||
addToExistingQueryString = options.addToExistingQueryString || defaultQueryString, | ||
@@ -149,19 +150,48 @@ timer = options.timer || noopTimer, | ||
var banner = find('.banner'); | ||
banner.appendChild(createDom('span', {className: 'duration'}, 'finished in ' + timer.elapsed() / 1000 + 's')); | ||
var alert = find('.alert'); | ||
alert.appendChild(createDom('span', {className: 'duration'}, 'finished in ' + timer.elapsed() / 1000 + 's')); | ||
alert.appendChild(createDom('span', { className: 'exceptions' }, | ||
createDom('label', { className: 'label', 'for': 'raise-exceptions' }, 'raise exceptions'), | ||
createDom('input', { | ||
className: 'raise', | ||
id: 'raise-exceptions', | ||
type: 'checkbox' | ||
}) | ||
)); | ||
var checkbox = find('#raise-exceptions'); | ||
banner.appendChild( | ||
createDom('div', { className: 'run-options' }, | ||
createDom('span', { className: 'trigger' }, 'Options'), | ||
createDom('div', { className: 'payload' }, | ||
createDom('div', { className: 'exceptions' }, | ||
createDom('input', { | ||
className: 'raise', | ||
id: 'raise-exceptions', | ||
type: 'checkbox' | ||
}), | ||
createDom('label', { className: 'label', 'for': 'raise-exceptions' }, 'raise exceptions')), | ||
createDom('div', { className: 'throw-failures' }, | ||
createDom('input', { | ||
className: 'throw', | ||
id: 'throw-failures', | ||
type: 'checkbox' | ||
}), | ||
createDom('label', { className: 'label', 'for': 'throw-failures' }, 'stop spec on expectation failure')) | ||
) | ||
)); | ||
checkbox.checked = !env.catchingExceptions(); | ||
checkbox.onclick = onRaiseExceptionsClick; | ||
var raiseCheckbox = find('#raise-exceptions'); | ||
raiseCheckbox.checked = !env.catchingExceptions(); | ||
raiseCheckbox.onclick = onRaiseExceptionsClick; | ||
var throwCheckbox = find('#throw-failures'); | ||
throwCheckbox.checked = env.throwingExpectationFailures(); | ||
throwCheckbox.onclick = onThrowExpectationsClick; | ||
var optionsMenu = find('.run-options'), | ||
optionsTrigger = optionsMenu.querySelector('.trigger'), | ||
optionsPayload = optionsMenu.querySelector('.payload'), | ||
isOpen = /\bopen\b/; | ||
optionsTrigger.onclick = function() { | ||
if (isOpen.test(optionsPayload.className)) { | ||
optionsPayload.className = optionsPayload.className.replace(isOpen, ''); | ||
} else { | ||
optionsPayload.className += ' open'; | ||
} | ||
}; | ||
if (specsExecuted < totalSpecsDefined) { | ||
@@ -168,0 +198,0 @@ var skippedMessage = 'Ran ' + specsExecuted + ' of ' + totalSpecsDefined + ' specs - run all'; |
{ | ||
"name": "jasmine-core", | ||
"license": "MIT", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"repository": { | ||
@@ -9,2 +9,11 @@ "type": "git", | ||
}, | ||
"keywords": [ | ||
"test", | ||
"jasmine", | ||
"tdd", | ||
"bdd" | ||
], | ||
"scripts": { | ||
"test": "./node_modules/.bin/grunt jshint execSpecsInNode" | ||
}, | ||
"description": "Official packaging of Jasmine's core files for use by Node.js projects.", | ||
@@ -14,12 +23,14 @@ "homepage": "http://jasmine.github.io", | ||
"devDependencies": { | ||
"glob": "~3.2.9", | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-jshint": "~0.7.0", | ||
"grunt-contrib-concat": "~0.3.0", | ||
"grunt-cli": "^0.1.13", | ||
"grunt-contrib-compass": "~0.6.0", | ||
"grunt-contrib-compress": "~0.5.2", | ||
"grunt-contrib-concat": "~0.3.0", | ||
"grunt-contrib-jshint": "~0.7.0", | ||
"jasmine": "https://github.com/jasmine/jasmine-npm/archive/master.tar.gz", | ||
"load-grunt-tasks": "^0.4.0", | ||
"shelljs": "~0.1.4", | ||
"glob": "~3.2.9", | ||
"jasmine": "https://github.com/jasmine/jasmine-npm/archive/master.tar.gz", | ||
"load-grunt-tasks": "^0.4.0" | ||
"temp": "~0.8.1" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
<a name="README">[<img src="https://rawgithub.com/jasmine/jasmine/master/images/jasmine-horizontal.svg" width="400px" />](http://jasmine.github.io)</a> | ||
<a name="README">[<img src="https://rawgithub.com/jasmine/jasmine/master/images/jasmine-horizontal.svg" width="400px" />](http://jasmine.github.io)</a> | ||
@@ -42,3 +42,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) | ||
<link rel="shortcut icon" type="image/png" href="jasmine/lib/jasmine-2.0.0/jasmine_favicon.png"> | ||
<link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine-2.0.0/jasmine.css"> | ||
<link rel="stylesheet" type="text/css" href="jasmine/lib/jasmine-2.0.0/jasmine.css"> | ||
@@ -72,2 +72,2 @@ <script type="text/javascript" src="jasmine/lib/jasmine-2.0.0/jasmine.js"></script> | ||
Copyright (c) 2008-2014 Pivotal Labs. This software is licensed under the MIT License. | ||
Copyright (c) 2008-2015 Pivotal Labs. This software is licensed under the MIT License. |
@@ -40,4 +40,2 @@ # How to work on a Jasmine Release | ||
1. Build the standalone distribution with `grunt buildStandaloneDist` | ||
1. Make sure you add the new ZIP file to git | ||
1. Should we still do this? Given we want to use github releases... | ||
@@ -65,3 +63,3 @@ ### Release the Python egg | ||
1. `cp edge ${version}` to copy the current edge docs to the new version | ||
1. `cp -R edge ${version}` to copy the current edge docs to the new version | ||
1. Add a link to the new version in `index.html` | ||
@@ -68,0 +66,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
191831
34
4092
11