jasmine-core 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jasmine-core/boot.js +6 -6
- data/lib/jasmine-core/boot/boot.js +6 -6
- data/lib/jasmine-core/example/spec/SpecHelper.js +1 -1
- data/lib/jasmine-core/jasmine-html.js +43 -13
- data/lib/jasmine-core/jasmine.css +6 -3
- data/lib/jasmine-core/jasmine.js +399 -149
- data/lib/jasmine-core/spec/core/ClockSpec.js +214 -22
- data/lib/jasmine-core/spec/core/DelayedFunctionSchedulerSpec.js +0 -41
- data/lib/jasmine-core/spec/core/EnvSpec.js +20 -0
- data/lib/jasmine-core/spec/core/PrettyPrintSpec.js +57 -27
- data/lib/jasmine-core/spec/core/SpecSpec.js +140 -1
- data/lib/jasmine-core/spec/core/SuiteSpec.js +47 -244
- data/lib/jasmine-core/spec/core/TreeProcessorSpec.js +633 -0
- data/lib/jasmine-core/spec/core/asymmetric_equality/AnySpec.js +2 -3
- data/lib/jasmine-core/spec/core/asymmetric_equality/ObjectContainingSpec.js +31 -0
- data/lib/jasmine-core/spec/core/integration/EnvSpec.js +35 -6
- data/lib/jasmine-core/spec/core/integration/SpecRunningSpec.js +108 -15
- data/lib/jasmine-core/spec/core/matchers/matchersUtilSpec.js +27 -0
- data/lib/jasmine-core/spec/core/matchers/toThrowErrorSpec.js +0 -2
- data/lib/jasmine-core/spec/html/HtmlReporterSpec.js +115 -1
- data/lib/jasmine-core/spec/npmPackage/npmPackageSpec.js +2 -5
- data/lib/jasmine-core/version.rb +1 -1
- metadata +96 -95
@@ -1,5 +1,6 @@
|
|
1
1
|
describe('npm package', function() {
|
2
2
|
var path = require('path'),
|
3
|
+
temp = require('temp').track(),
|
3
4
|
fs = require('fs');
|
4
5
|
|
5
6
|
beforeAll(function() {
|
@@ -7,9 +8,7 @@ describe('npm package', function() {
|
|
7
8
|
pack = shell.exec('npm pack', { silent: true });
|
8
9
|
|
9
10
|
this.tarball = pack.output.split('\n')[0];
|
10
|
-
this.tmpDir =
|
11
|
-
|
12
|
-
fs.mkdirSync(this.tmpDir);
|
11
|
+
this.tmpDir = temp.mkdirSync(); // automatically deleted on exit
|
13
12
|
|
14
13
|
var untar = shell.exec('tar -xzf ' + this.tarball + ' -C ' + this.tmpDir, { silent: true });
|
15
14
|
expect(untar.code).toBe(0);
|
@@ -44,8 +43,6 @@ describe('npm package', function() {
|
|
44
43
|
};
|
45
44
|
|
46
45
|
fs.unlink(this.tarball);
|
47
|
-
fs.readdirSync(this.tmpDir).forEach(cleanup.bind(null, this.tmpDir));
|
48
|
-
fs.rmdirSync(this.tmpDir);
|
49
46
|
});
|
50
47
|
|
51
48
|
it('has a root path', function() {
|
data/lib/jasmine-core/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jasmine-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajan Agaskar
|
@@ -10,62 +10,62 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-04-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- -
|
26
|
+
- - '>='
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
version: '0'
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: sauce-connect
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
|
-
- -
|
33
|
+
- - '>='
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '0'
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - '>='
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '0'
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: compass
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - '>='
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0'
|
50
50
|
type: :development
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- -
|
54
|
+
- - '>='
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
57
|
- !ruby/object:Gem::Dependency
|
58
58
|
name: jasmine_selenium_runner
|
59
59
|
requirement: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
|
-
- -
|
61
|
+
- - '>='
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: 0.2.0
|
64
64
|
type: :development
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - '>='
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: 0.2.0
|
71
71
|
description: Test your JavaScript without any framework dependencies, in any environment,
|
@@ -75,88 +75,89 @@ executables: []
|
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
-
|
87
|
-
-
|
88
|
-
-
|
89
|
-
-
|
90
|
-
-
|
91
|
-
-
|
92
|
-
-
|
93
|
-
-
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
-
|
111
|
-
-
|
112
|
-
-
|
113
|
-
-
|
114
|
-
-
|
115
|
-
-
|
116
|
-
-
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
125
|
-
-
|
126
|
-
-
|
127
|
-
-
|
128
|
-
-
|
129
|
-
-
|
130
|
-
-
|
131
|
-
-
|
132
|
-
-
|
133
|
-
-
|
134
|
-
-
|
135
|
-
-
|
136
|
-
-
|
137
|
-
-
|
138
|
-
-
|
139
|
-
-
|
140
|
-
-
|
141
|
-
-
|
142
|
-
-
|
143
|
-
-
|
144
|
-
-
|
145
|
-
-
|
146
|
-
-
|
147
|
-
-
|
148
|
-
-
|
149
|
-
-
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
154
|
-
-
|
155
|
-
-
|
156
|
-
-
|
157
|
-
-
|
158
|
-
-
|
159
|
-
-
|
78
|
+
- ./lib/console/console.js
|
79
|
+
- ./lib/jasmine-core/__init__.py
|
80
|
+
- ./lib/jasmine-core/boot/boot.js
|
81
|
+
- ./lib/jasmine-core/boot/node_boot.js
|
82
|
+
- ./lib/jasmine-core/boot.js
|
83
|
+
- ./lib/jasmine-core/core.py
|
84
|
+
- ./lib/jasmine-core/example/node_example/lib/jasmine_examples/Player.js
|
85
|
+
- ./lib/jasmine-core/example/node_example/lib/jasmine_examples/Song.js
|
86
|
+
- ./lib/jasmine-core/example/node_example/spec/helpers/jasmine_examples/SpecHelper.js
|
87
|
+
- ./lib/jasmine-core/example/node_example/spec/jasmine_examples/PlayerSpec.js
|
88
|
+
- ./lib/jasmine-core/example/spec/PlayerSpec.js
|
89
|
+
- ./lib/jasmine-core/example/spec/SpecHelper.js
|
90
|
+
- ./lib/jasmine-core/example/src/Player.js
|
91
|
+
- ./lib/jasmine-core/example/src/Song.js
|
92
|
+
- ./lib/jasmine-core/jasmine-html.js
|
93
|
+
- ./lib/jasmine-core/jasmine.css
|
94
|
+
- ./lib/jasmine-core/jasmine.js
|
95
|
+
- ./lib/jasmine-core/json2.js
|
96
|
+
- ./lib/jasmine-core/node_boot.js
|
97
|
+
- ./lib/jasmine-core/version.rb
|
98
|
+
- ./lib/jasmine-core.js
|
99
|
+
- ./lib/jasmine-core.rb
|
100
|
+
- ./lib/jasmine-core/spec/console/ConsoleReporterSpec.js
|
101
|
+
- ./lib/jasmine-core/spec/core/asymmetric_equality/AnySpec.js
|
102
|
+
- ./lib/jasmine-core/spec/core/asymmetric_equality/AnythingSpec.js
|
103
|
+
- ./lib/jasmine-core/spec/core/asymmetric_equality/ArrayContainingSpec.js
|
104
|
+
- ./lib/jasmine-core/spec/core/asymmetric_equality/ObjectContainingSpec.js
|
105
|
+
- ./lib/jasmine-core/spec/core/asymmetric_equality/StringMatchingSpec.js
|
106
|
+
- ./lib/jasmine-core/spec/core/CallTrackerSpec.js
|
107
|
+
- ./lib/jasmine-core/spec/core/ClockSpec.js
|
108
|
+
- ./lib/jasmine-core/spec/core/DelayedFunctionSchedulerSpec.js
|
109
|
+
- ./lib/jasmine-core/spec/core/EnvSpec.js
|
110
|
+
- ./lib/jasmine-core/spec/core/ExceptionFormatterSpec.js
|
111
|
+
- ./lib/jasmine-core/spec/core/ExceptionsSpec.js
|
112
|
+
- ./lib/jasmine-core/spec/core/ExpectationResultSpec.js
|
113
|
+
- ./lib/jasmine-core/spec/core/ExpectationSpec.js
|
114
|
+
- ./lib/jasmine-core/spec/core/integration/CustomMatchersSpec.js
|
115
|
+
- ./lib/jasmine-core/spec/core/integration/EnvSpec.js
|
116
|
+
- ./lib/jasmine-core/spec/core/integration/SpecRunningSpec.js
|
117
|
+
- ./lib/jasmine-core/spec/core/JsApiReporterSpec.js
|
118
|
+
- ./lib/jasmine-core/spec/core/matchers/matchersUtilSpec.js
|
119
|
+
- ./lib/jasmine-core/spec/core/matchers/toBeCloseToSpec.js
|
120
|
+
- ./lib/jasmine-core/spec/core/matchers/toBeDefinedSpec.js
|
121
|
+
- ./lib/jasmine-core/spec/core/matchers/toBeFalsySpec.js
|
122
|
+
- ./lib/jasmine-core/spec/core/matchers/toBeGreaterThanSpec.js
|
123
|
+
- ./lib/jasmine-core/spec/core/matchers/toBeLessThanSpec.js
|
124
|
+
- ./lib/jasmine-core/spec/core/matchers/toBeNaNSpec.js
|
125
|
+
- ./lib/jasmine-core/spec/core/matchers/toBeNullSpec.js
|
126
|
+
- ./lib/jasmine-core/spec/core/matchers/toBeSpec.js
|
127
|
+
- ./lib/jasmine-core/spec/core/matchers/toBeTruthySpec.js
|
128
|
+
- ./lib/jasmine-core/spec/core/matchers/toBeUndefinedSpec.js
|
129
|
+
- ./lib/jasmine-core/spec/core/matchers/toContainSpec.js
|
130
|
+
- ./lib/jasmine-core/spec/core/matchers/toEqualSpec.js
|
131
|
+
- ./lib/jasmine-core/spec/core/matchers/toHaveBeenCalledSpec.js
|
132
|
+
- ./lib/jasmine-core/spec/core/matchers/toHaveBeenCalledWithSpec.js
|
133
|
+
- ./lib/jasmine-core/spec/core/matchers/toMatchSpec.js
|
134
|
+
- ./lib/jasmine-core/spec/core/matchers/toThrowErrorSpec.js
|
135
|
+
- ./lib/jasmine-core/spec/core/matchers/toThrowSpec.js
|
136
|
+
- ./lib/jasmine-core/spec/core/MockDateSpec.js
|
137
|
+
- ./lib/jasmine-core/spec/core/PrettyPrintSpec.js
|
138
|
+
- ./lib/jasmine-core/spec/core/QueueRunnerSpec.js
|
139
|
+
- ./lib/jasmine-core/spec/core/ReportDispatcherSpec.js
|
140
|
+
- ./lib/jasmine-core/spec/core/SpecSpec.js
|
141
|
+
- ./lib/jasmine-core/spec/core/SpyRegistrySpec.js
|
142
|
+
- ./lib/jasmine-core/spec/core/SpySpec.js
|
143
|
+
- ./lib/jasmine-core/spec/core/SpyStrategySpec.js
|
144
|
+
- ./lib/jasmine-core/spec/core/SuiteSpec.js
|
145
|
+
- ./lib/jasmine-core/spec/core/TimerSpec.js
|
146
|
+
- ./lib/jasmine-core/spec/core/TreeProcessorSpec.js
|
147
|
+
- ./lib/jasmine-core/spec/core/UtilSpec.js
|
148
|
+
- ./lib/jasmine-core/spec/helpers/BrowserFlags.js
|
149
|
+
- ./lib/jasmine-core/spec/helpers/defineJasmineUnderTest.js
|
150
|
+
- ./lib/jasmine-core/spec/helpers/nodeDefineJasmineUnderTest.js
|
151
|
+
- ./lib/jasmine-core/spec/html/HtmlReporterSpec.js
|
152
|
+
- ./lib/jasmine-core/spec/html/HtmlSpecFilterSpec.js
|
153
|
+
- ./lib/jasmine-core/spec/html/MatchersHtmlSpec.js
|
154
|
+
- ./lib/jasmine-core/spec/html/PrettyPrintHtmlSpec.js
|
155
|
+
- ./lib/jasmine-core/spec/html/QueryStringSpec.js
|
156
|
+
- ./lib/jasmine-core/spec/html/ResultsNodeSpec.js
|
157
|
+
- ./lib/jasmine-core/spec/node_suite.js
|
158
|
+
- ./lib/jasmine-core/spec/npmPackage/npmPackageSpec.js
|
159
|
+
- ./lib/jasmine-core/spec/performance/large_object_test.js
|
160
|
+
- ./lib/jasmine-core/spec/performance/performance_test.js
|
160
161
|
homepage: http://jasmine.github.io
|
161
162
|
licenses:
|
162
163
|
- MIT
|
@@ -167,17 +168,17 @@ require_paths:
|
|
167
168
|
- lib
|
168
169
|
required_ruby_version: !ruby/object:Gem::Requirement
|
169
170
|
requirements:
|
170
|
-
- -
|
171
|
+
- - '>='
|
171
172
|
- !ruby/object:Gem::Version
|
172
173
|
version: '0'
|
173
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
175
|
requirements:
|
175
|
-
- -
|
176
|
+
- - '>='
|
176
177
|
- !ruby/object:Gem::Version
|
177
178
|
version: '0'
|
178
179
|
requirements: []
|
179
180
|
rubyforge_project: jasmine-core
|
180
|
-
rubygems_version: 2.
|
181
|
+
rubygems_version: 2.0.3
|
181
182
|
signing_key:
|
182
183
|
specification_version: 4
|
183
184
|
summary: JavaScript BDD framework
|