jasmine-core 3.4.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitattributes ADDED
@@ -0,0 +1,2 @@
1
+ * text=auto eol=lf
2
+ *.png -text
@@ -30,7 +30,6 @@ Once you've pushed a feature branch to your forked repo, you're ready to open a
30
30
  ### Directory Structure
31
31
 
32
32
  * `/src` contains all of the source files
33
- * `/src/console` - Node.js-specific files
34
33
  * `/src/core` - generic source files
35
34
  * `/src/html` - browser-specific files
36
35
  * `/spec` contains all of the tests
@@ -47,37 +46,33 @@ The tests should always use `jasmineUnderTest` to refer to the objects and funct
47
46
 
48
47
  ### `boot.js`
49
48
 
50
- __This is new for Jasmine 2.0.__
51
-
52
49
  This file does all of the setup necessary for Jasmine to work. It loads all of the code, creates an `Env`, attaches the global functions, and builds the reporter. It also sets up the execution of the `Env` - for browsers this is in `window.onload`. While the default in `lib` is appropriate for browsers, projects may wish to customize this file.
53
50
 
54
51
  For example, for Jasmine development there is a different `dev_boot.js` for Jasmine development that does more work.
55
52
 
56
53
  ### Compatibility
57
54
 
58
- * Browser Minimum
59
- * IE8
60
- * Firefox 3.x
61
- * Chrome ??
62
- * Safari 5
63
-
64
- ## Development
65
-
66
- All source code belongs in `src/`. The `core/` directory contains the bulk of Jasmine's functionality. This code should remain browser- and environment-agnostic. If your feature or fix cannot be, as mentioned above, please degrade gracefully. Any code that should only be in a non-browser environment should live in `src/console/`. Any code that depends on a browser (specifically, it expects `window` to be the global or `document` is present) should live in `src/html/`.
67
-
68
- ### Install Dependencies
55
+ Jasmine supports the following environments:
69
56
 
70
- Jasmine Core relies on Ruby and Node.js.
57
+ * Browsers
58
+ * IE10+
59
+ * Edge Latest
60
+ * Firefox Latest
61
+ * Chrome Latest
62
+ * Safari 8+
71
63
 
72
- To install the Ruby dependencies, you will need Ruby, Rubygems, and Bundler available. Then:
64
+ * Node.js
65
+ * 8
66
+ * 10
67
+ * 12
73
68
 
74
- $ bundle
69
+ ## Development
75
70
 
76
- ...will install all of the Ruby dependencies. If the ffi gem fails to build its native extensions, you may need to manually install some system dependencies. On Ubuntu:
71
+ All source code belongs in `src/`. The `core/` directory contains the bulk of Jasmine's functionality. This code should remain browser- and environment-agnostic. If your feature or fix cannot be, as mentioned above, please degrade gracefully. Any code that depends on a browser (specifically, it expects `window` to be the global or `document` is present) should live in `src/html/`.
77
72
 
78
- $ apt-get install gcc ruby ruby-dev libxml2 libxml2-dev libxslt1-dev
73
+ ### Install Dependencies
79
74
 
80
- ...should get you to the point that `bundle` can install everything.
75
+ Jasmine Core relies on Node.js.
81
76
 
82
77
  To install the Node dependencies, you will need Node.js, Npm, and [Grunt](http://gruntjs.com/), the [grunt-cli](https://github.com/gruntjs/grunt-cli) and ensure that `grunt` is on your path.
83
78
 
@@ -85,9 +80,9 @@ To install the Node dependencies, you will need Node.js, Npm, and [Grunt](http:/
85
80
 
86
81
  ...will install all of the node modules locally. Now run
87
82
 
88
- $ grunt
83
+ $ npm test
89
84
 
90
- ...if you see that JSHint runs, your system is ready.
85
+ ...you should see tests run and eslint checking formatting.
91
86
 
92
87
  ### How to write new Jasmine code
93
88
 
@@ -98,23 +93,17 @@ Or, How to make a successful pull request
98
93
  * _Be browser agnostic_ - if you must rely on browser-specific functionality, please write it in a way that degrades gracefully
99
94
  * _Write specs_ - Jasmine's a testing framework; don't add functionality without test-driving it
100
95
  * _Write code in the style of the rest of the repo_ - Jasmine should look like a cohesive whole
101
- * _Ensure the *entire* test suite is green_ in all the big browsers, Node, and JSHint - your contribution shouldn't break Jasmine for other users
96
+ * _Ensure the *entire* test suite is green_ in all the big browsers, Node, and ESLint - your contribution shouldn't break Jasmine for other users
102
97
 
103
98
  Follow these tips and your pull request, patch, or suggestion is much more likely to be integrated.
104
99
 
105
100
  ### Running Specs
106
101
 
107
- Jasmine uses the [Jasmine Ruby gem](http://github.com/jasmine/jasmine-gem) to test itself in browser.
108
-
109
- $ bundle exec rake jasmine
110
-
111
- ...and then visit `http://localhost:8888` to run specs.
112
-
113
- Jasmine uses the [Jasmine NPM package](http://github.com/jasmine/jasmine-npm) to test itself in a Node.js/npm environment.
102
+ Jasmine uses some internal tooling to test itself in browser on Travis. This tooling _should_ work locally as well.
114
103
 
115
- $ grunt execSpecsInNode
104
+ $ node ci.js
116
105
 
117
- ...and then the results will print to the console. All specs run except those that expect a browser (the specs in `spec/html` are ignored).
106
+ You can also set the `JASMINE_BROWSER` environment variable to specify which browser should be used.
118
107
 
119
108
  The easiest way to run the tests in **Internet Explorer** is to run a VM that has IE installed. It's easy to do this with VirtualBox.
120
109
 
@@ -123,13 +112,13 @@ The easiest way to run the tests in **Internet Explorer** is to run a VM that ha
123
112
  1. Unzip the downloaded archive. There should be an OVA file inside.
124
113
  1. In VirtualBox, choose `File > Import Appliance` and select the OVA file. Accept the default settings in the dialog that appears. Now you have a Windows VM!
125
114
  1. Run the VM and start IE.
126
- 1. With `bundle exec rake jasmine` running on your host machine, navigate to `http://10.0.2.2:8888` in IE.
115
+ 1. With `npm run serve` running on your host machine, navigate to `http://10.0.2.2:8888` in IE.
127
116
 
128
117
  ## Before Committing or Submitting a Pull Request
129
118
 
130
119
  1. Ensure all specs are green in browser *and* node
131
- 1. Ensure JSHint is green with `grunt jshint`
132
- 1. Build `jasmine.js` with `grunt buildDistribution` and run all specs again - this ensures that your changes self-test well
120
+ 1. Ensure eslint and prettier are clean as part of your `npm test` command. You can run `npm run cleanup` to have prettier re-write the files.
121
+ 1. Build `jasmine.js` with `npm run build` and run all specs again - this ensures that your changes self-test well
133
122
  1. Revert your changes to `jasmine.js` and `jasmine-html.js`
134
123
  * 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
135
124
  * When we accept your pull request, we will generate these files as a separate commit and merge the entire branch into master
package/MIT.LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008-2017 Pivotal Labs
1
+ Copyright (c) 2008-2019 Pivotal Labs
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
package/README.md CHANGED
@@ -52,8 +52,9 @@ Add the following to your HTML file:
52
52
 
53
53
  ## Supported environments
54
54
 
55
- Jasmine tests itself across many browsers (Safari, Chrome, Firefox, PhantomJS, Microsoft Edge, and new Internet Explorer) as well as nodejs. To see the exact version tests are run against look at our [.travis.yml](https://github.com/jasmine/jasmine/blob/master/.travis.yml)
55
+ Jasmine tests itself across many browsers (Safari, Chrome, Firefox, Microsoft Edge, and new Internet Explorer) as well as nodejs. To see the exact version tests are run against look at our [.travis.yml](https://github.com/jasmine/jasmine/blob/master/.travis.yml)
56
56
 
57
+ [![Sauce Test Status](https://saucelabs.com/browser-matrix/jasmine-js.svg)](https://saucelabs.com/u/jasmine-js)
57
58
 
58
59
  ## Support
59
60
 
@@ -79,4 +80,4 @@ Copyright (c) 2008-2018 Pivotal Labs. This software is licensed under the MIT Li
79
80
 
80
81
 
81
82
  ## License
82
- [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjasmine%2Fjasmine.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjasmine%2Fjasmine?ref=badge_large)
83
+ [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjasmine%2Fjasmine.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjasmine%2Fjasmine?ref=badge_large)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: jasmine-core
3
- Version: 3.3.0
3
+ Version: 3.4.0
4
4
  Summary: 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.
5
5
  Home-page: http://jasmine.github.io
6
6
  Author: Pivotal Labs
@@ -6,6 +6,56 @@ setup.py
6
6
  ./images/__init__.py
7
7
  ./lib/jasmine-core/__init__.py
8
8
  ./lib/jasmine-core/core.py
9
+ ./node_modules/node-gyp/gyp/PRESUBMIT.py
10
+ ./node_modules/node-gyp/gyp/gyp_main.py
11
+ ./node_modules/node-gyp/gyp/setup.py
12
+ ./node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py
13
+ ./node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py
14
+ ./node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py
15
+ ./node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py
16
+ ./node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py
17
+ ./node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py
18
+ ./node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py
19
+ ./node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py
20
+ ./node_modules/node-gyp/gyp/pylib/gyp/__init__.py
21
+ ./node_modules/node-gyp/gyp/pylib/gyp/common.py
22
+ ./node_modules/node-gyp/gyp/pylib/gyp/common_test.py
23
+ ./node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py
24
+ ./node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py
25
+ ./node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py
26
+ ./node_modules/node-gyp/gyp/pylib/gyp/input.py
27
+ ./node_modules/node-gyp/gyp/pylib/gyp/input_test.py
28
+ ./node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py
29
+ ./node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py
30
+ ./node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py
31
+ ./node_modules/node-gyp/gyp/pylib/gyp/ordered_dict.py
32
+ ./node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py
33
+ ./node_modules/node-gyp/gyp/pylib/gyp/win_tool.py
34
+ ./node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py
35
+ ./node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py
36
+ ./node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py
37
+ ./node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py
38
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py
39
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py
40
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/android.py
41
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py
42
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py
43
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py
44
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py
45
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py
46
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
47
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py
48
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py
49
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py
50
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py
51
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py
52
+ ./node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py
53
+ ./node_modules/node-gyp/gyp/tools/graphviz.py
54
+ ./node_modules/node-gyp/gyp/tools/pretty_gyp.py
55
+ ./node_modules/node-gyp/gyp/tools/pretty_sln.py
56
+ ./node_modules/node-gyp/gyp/tools/pretty_vcproj.py
57
+ ./node_modules/node-gyp/test/fixtures/test-charmap.py
58
+ ./node_modules/node-gyp/tools/gyp/pylib/gyp/generator/compile_commands_json.py
9
59
  ./node_modules/walkdir/test/comparison/find.py
10
60
  images/__init__.py
11
61
  images/jasmine-horizontal.png