jasmine-core 1.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jasmine-core.rb +17 -0
- data/lib/jasmine-core/example/SpecRunner.html +54 -0
- data/lib/jasmine-core/example/spec/PlayerSpec.js +58 -0
- data/lib/jasmine-core/example/spec/SpecHelper.js +9 -0
- data/lib/jasmine-core/example/src/Player.js +22 -0
- data/lib/jasmine-core/example/src/Song.js +7 -0
- data/lib/jasmine-core/jasmine-html.js +190 -0
- data/lib/jasmine-core/jasmine.css +166 -0
- data/lib/jasmine-core/jasmine.js +2476 -0
- data/lib/jasmine-core/json2.js +478 -0
- data/lib/jasmine-core/version.rb +8 -0
- data/spec/console/ConsoleReporterSpec.js +451 -0
- data/spec/core/BaseSpec.js +27 -0
- data/spec/core/CustomMatchersSpec.js +97 -0
- data/spec/core/EnvSpec.js +159 -0
- data/spec/core/ExceptionsSpec.js +149 -0
- data/spec/core/JsApiReporterSpec.js +103 -0
- data/spec/core/MatchersSpec.js +838 -0
- data/spec/core/MockClockSpec.js +38 -0
- data/spec/core/MultiReporterSpec.js +45 -0
- data/spec/core/NestedResultsSpec.js +54 -0
- data/spec/core/PrettyPrintSpec.js +87 -0
- data/spec/core/QueueSpec.js +23 -0
- data/spec/core/ReporterSpec.js +56 -0
- data/spec/core/RunnerSpec.js +267 -0
- data/spec/core/SpecRunningSpec.js +1258 -0
- data/spec/core/SpecSpec.js +124 -0
- data/spec/core/SpySpec.js +201 -0
- data/spec/core/SuiteSpec.js +120 -0
- data/spec/core/UtilSpec.js +39 -0
- data/spec/core/WaitsForBlockSpec.js +118 -0
- data/spec/html/MatchersHtmlSpec.js +38 -0
- data/spec/html/PrettyPrintHtmlSpec.js +8 -0
- data/spec/html/TrivialReporterSpec.js +239 -0
- data/spec/node_suite.js +127 -0
- data/spec/runner.html +79 -0
- data/spec/templates/runner.html.erb +49 -0
- data/spec/templates/script_tag.html.erb +1 -0
- metadata +164 -0
data/spec/runner.html
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/html4/loose.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<title>Jasmine Spec Runner: Jasmine Core</title>
|
6
|
+
|
7
|
+
<link rel="shortcut icon" type="image/png" href="../images/jasmine_favicon.png">
|
8
|
+
|
9
|
+
<link href="../lib/jasmine-core/jasmine.css" rel="stylesheet"/>
|
10
|
+
<script type="text/javascript" src="../lib/jasmine-core/jasmine.js"></script>
|
11
|
+
<script type="text/javascript">
|
12
|
+
// yes, really keep this here to keep us honest, but only for jasmine's own runner! [xw]
|
13
|
+
undefined = "diz be undefined yo";
|
14
|
+
</script>
|
15
|
+
|
16
|
+
|
17
|
+
<!-- include source files here... -->
|
18
|
+
<script type="text/javascript" src=".././src/html/TrivialReporter.js"></script>
|
19
|
+
<script type="text/javascript" src=".././src/console/ConsoleReporter.js"></script>
|
20
|
+
|
21
|
+
<!-- include spec files here... -->
|
22
|
+
<script type="text/javascript" src=".././spec/core/BaseSpec.js"></script>
|
23
|
+
<script type="text/javascript" src=".././spec/core/CustomMatchersSpec.js"></script>
|
24
|
+
<script type="text/javascript" src=".././spec/core/EnvSpec.js"></script>
|
25
|
+
<script type="text/javascript" src=".././spec/core/ExceptionsSpec.js"></script>
|
26
|
+
<script type="text/javascript" src=".././spec/core/JsApiReporterSpec.js"></script>
|
27
|
+
<script type="text/javascript" src=".././spec/core/MatchersSpec.js"></script>
|
28
|
+
<script type="text/javascript" src=".././spec/core/MockClockSpec.js"></script>
|
29
|
+
<script type="text/javascript" src=".././spec/core/MultiReporterSpec.js"></script>
|
30
|
+
<script type="text/javascript" src=".././spec/core/NestedResultsSpec.js"></script>
|
31
|
+
<script type="text/javascript" src=".././spec/core/PrettyPrintSpec.js"></script>
|
32
|
+
<script type="text/javascript" src=".././spec/core/QueueSpec.js"></script>
|
33
|
+
<script type="text/javascript" src=".././spec/core/ReporterSpec.js"></script>
|
34
|
+
<script type="text/javascript" src=".././spec/core/RunnerSpec.js"></script>
|
35
|
+
<script type="text/javascript" src=".././spec/core/SpecRunningSpec.js"></script>
|
36
|
+
<script type="text/javascript" src=".././spec/core/SpecSpec.js"></script>
|
37
|
+
<script type="text/javascript" src=".././spec/core/SpySpec.js"></script>
|
38
|
+
<script type="text/javascript" src=".././spec/core/SuiteSpec.js"></script>
|
39
|
+
<script type="text/javascript" src=".././spec/core/UtilSpec.js"></script>
|
40
|
+
<script type="text/javascript" src=".././spec/core/WaitsForBlockSpec.js"></script>
|
41
|
+
<script type="text/javascript" src=".././spec/html/MatchersHtmlSpec.js"></script>
|
42
|
+
<script type="text/javascript" src=".././spec/html/PrettyPrintHtmlSpec.js"></script>
|
43
|
+
<script type="text/javascript" src=".././spec/html/TrivialReporterSpec.js"></script>
|
44
|
+
<script type="text/javascript" src=".././spec/console/ConsoleReporterSpec.js"></script>
|
45
|
+
|
46
|
+
<script type="text/javascript">
|
47
|
+
(function() {
|
48
|
+
var jasmineEnv = jasmine.getEnv();
|
49
|
+
jasmineEnv.updateInterval = 1000;
|
50
|
+
|
51
|
+
var trivialReporter = new jasmine.TrivialReporter();
|
52
|
+
|
53
|
+
jasmineEnv.addReporter(trivialReporter);
|
54
|
+
|
55
|
+
jasmineEnv.specFilter = function(spec) {
|
56
|
+
return trivialReporter.specFilter(spec);
|
57
|
+
};
|
58
|
+
|
59
|
+
var currentWindowOnload = window.onload;
|
60
|
+
|
61
|
+
window.onload = function() {
|
62
|
+
if (currentWindowOnload) {
|
63
|
+
currentWindowOnload();
|
64
|
+
}
|
65
|
+
execJasmine();
|
66
|
+
};
|
67
|
+
|
68
|
+
function execJasmine() {
|
69
|
+
jasmineEnv.execute();
|
70
|
+
}
|
71
|
+
|
72
|
+
})();
|
73
|
+
</script>
|
74
|
+
|
75
|
+
</head>
|
76
|
+
|
77
|
+
<body>
|
78
|
+
</body>
|
79
|
+
</html>
|
@@ -0,0 +1,49 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/html4/loose.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<title><%= title %></title>
|
6
|
+
|
7
|
+
<%= favicon %>
|
8
|
+
<%= jasmine_tags %>
|
9
|
+
|
10
|
+
<!-- include source files here... -->
|
11
|
+
<%= source_tags %>
|
12
|
+
|
13
|
+
<!-- include spec files here... -->
|
14
|
+
<%= spec_file_tags %>
|
15
|
+
|
16
|
+
<script type="text/javascript">
|
17
|
+
(function() {
|
18
|
+
var jasmineEnv = jasmine.getEnv();
|
19
|
+
jasmineEnv.updateInterval = 1000;
|
20
|
+
|
21
|
+
var trivialReporter = new jasmine.TrivialReporter();
|
22
|
+
|
23
|
+
jasmineEnv.addReporter(trivialReporter);
|
24
|
+
|
25
|
+
jasmineEnv.specFilter = function(spec) {
|
26
|
+
return trivialReporter.specFilter(spec);
|
27
|
+
};
|
28
|
+
|
29
|
+
var currentWindowOnload = window.onload;
|
30
|
+
|
31
|
+
window.onload = function() {
|
32
|
+
if (currentWindowOnload) {
|
33
|
+
currentWindowOnload();
|
34
|
+
}
|
35
|
+
execJasmine();
|
36
|
+
};
|
37
|
+
|
38
|
+
function execJasmine() {
|
39
|
+
jasmineEnv.execute();
|
40
|
+
}
|
41
|
+
|
42
|
+
})();
|
43
|
+
</script>
|
44
|
+
|
45
|
+
</head>
|
46
|
+
|
47
|
+
<body>
|
48
|
+
</body>
|
49
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
<script type="text/javascript" src="<%= file %>"></script>
|
metadata
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jasmine-core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: 6
|
5
|
+
version: 1.1.0.rc1
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Rajan Agaskar
|
9
|
+
- Davis Frank
|
10
|
+
- Christian Williams
|
11
|
+
autorequire:
|
12
|
+
bindir: bin
|
13
|
+
cert_chain: []
|
14
|
+
|
15
|
+
date: 2011-06-17 00:00:00 -04:00
|
16
|
+
default_executable:
|
17
|
+
dependencies:
|
18
|
+
- !ruby/object:Gem::Dependency
|
19
|
+
name: term-ansicolor
|
20
|
+
prerelease: false
|
21
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
22
|
+
none: false
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: "0"
|
27
|
+
type: :development
|
28
|
+
version_requirements: *id001
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: json_pure
|
31
|
+
prerelease: false
|
32
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 1.4.3
|
38
|
+
type: :development
|
39
|
+
version_requirements: *id002
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: frank
|
42
|
+
prerelease: false
|
43
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: "0"
|
49
|
+
type: :development
|
50
|
+
version_requirements: *id003
|
51
|
+
- !ruby/object:Gem::Dependency
|
52
|
+
name: ragaskar-jsdoc_helper
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
55
|
+
none: false
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: "0"
|
60
|
+
type: :development
|
61
|
+
version_requirements: *id004
|
62
|
+
description: Test your JavaScript without any framework dependencies, in any environment, and with a nice descriptive syntax.
|
63
|
+
email: jasmine-js@googlegroups.com
|
64
|
+
executables: []
|
65
|
+
|
66
|
+
extensions: []
|
67
|
+
|
68
|
+
extra_rdoc_files: []
|
69
|
+
|
70
|
+
files:
|
71
|
+
- ./lib/jasmine-core/example/spec/PlayerSpec.js
|
72
|
+
- ./lib/jasmine-core/example/spec/SpecHelper.js
|
73
|
+
- ./lib/jasmine-core/example/SpecRunner.html
|
74
|
+
- ./lib/jasmine-core/example/src/Player.js
|
75
|
+
- ./lib/jasmine-core/example/src/Song.js
|
76
|
+
- ./lib/jasmine-core/jasmine-html.js
|
77
|
+
- ./lib/jasmine-core/jasmine.css
|
78
|
+
- ./lib/jasmine-core/jasmine.js
|
79
|
+
- ./lib/jasmine-core/json2.js
|
80
|
+
- ./lib/jasmine-core/version.rb
|
81
|
+
- ./lib/jasmine-core.rb
|
82
|
+
- spec/console/ConsoleReporterSpec.js
|
83
|
+
- spec/core/BaseSpec.js
|
84
|
+
- spec/core/CustomMatchersSpec.js
|
85
|
+
- spec/core/EnvSpec.js
|
86
|
+
- spec/core/ExceptionsSpec.js
|
87
|
+
- spec/core/JsApiReporterSpec.js
|
88
|
+
- spec/core/MatchersSpec.js
|
89
|
+
- spec/core/MockClockSpec.js
|
90
|
+
- spec/core/MultiReporterSpec.js
|
91
|
+
- spec/core/NestedResultsSpec.js
|
92
|
+
- spec/core/PrettyPrintSpec.js
|
93
|
+
- spec/core/QueueSpec.js
|
94
|
+
- spec/core/ReporterSpec.js
|
95
|
+
- spec/core/RunnerSpec.js
|
96
|
+
- spec/core/SpecRunningSpec.js
|
97
|
+
- spec/core/SpecSpec.js
|
98
|
+
- spec/core/SpySpec.js
|
99
|
+
- spec/core/SuiteSpec.js
|
100
|
+
- spec/core/UtilSpec.js
|
101
|
+
- spec/core/WaitsForBlockSpec.js
|
102
|
+
- spec/html/MatchersHtmlSpec.js
|
103
|
+
- spec/html/PrettyPrintHtmlSpec.js
|
104
|
+
- spec/html/TrivialReporterSpec.js
|
105
|
+
- spec/node_suite.js
|
106
|
+
- spec/runner.html
|
107
|
+
- spec/templates/runner.html.erb
|
108
|
+
- spec/templates/script_tag.html.erb
|
109
|
+
has_rdoc: true
|
110
|
+
homepage: http://pivotal.github.com/jasmine
|
111
|
+
licenses: []
|
112
|
+
|
113
|
+
post_install_message:
|
114
|
+
rdoc_options: []
|
115
|
+
|
116
|
+
require_paths:
|
117
|
+
- lib
|
118
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: "0"
|
124
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
|
+
none: false
|
126
|
+
requirements:
|
127
|
+
- - ">"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: 1.3.1
|
130
|
+
requirements: []
|
131
|
+
|
132
|
+
rubyforge_project: jasmine-core
|
133
|
+
rubygems_version: 1.6.2
|
134
|
+
signing_key:
|
135
|
+
specification_version: 3
|
136
|
+
summary: JavaScript BDD framework
|
137
|
+
test_files:
|
138
|
+
- spec/console/ConsoleReporterSpec.js
|
139
|
+
- spec/core/BaseSpec.js
|
140
|
+
- spec/core/CustomMatchersSpec.js
|
141
|
+
- spec/core/EnvSpec.js
|
142
|
+
- spec/core/ExceptionsSpec.js
|
143
|
+
- spec/core/JsApiReporterSpec.js
|
144
|
+
- spec/core/MatchersSpec.js
|
145
|
+
- spec/core/MockClockSpec.js
|
146
|
+
- spec/core/MultiReporterSpec.js
|
147
|
+
- spec/core/NestedResultsSpec.js
|
148
|
+
- spec/core/PrettyPrintSpec.js
|
149
|
+
- spec/core/QueueSpec.js
|
150
|
+
- spec/core/ReporterSpec.js
|
151
|
+
- spec/core/RunnerSpec.js
|
152
|
+
- spec/core/SpecRunningSpec.js
|
153
|
+
- spec/core/SpecSpec.js
|
154
|
+
- spec/core/SpySpec.js
|
155
|
+
- spec/core/SuiteSpec.js
|
156
|
+
- spec/core/UtilSpec.js
|
157
|
+
- spec/core/WaitsForBlockSpec.js
|
158
|
+
- spec/html/MatchersHtmlSpec.js
|
159
|
+
- spec/html/PrettyPrintHtmlSpec.js
|
160
|
+
- spec/html/TrivialReporterSpec.js
|
161
|
+
- spec/node_suite.js
|
162
|
+
- spec/runner.html
|
163
|
+
- spec/templates/runner.html.erb
|
164
|
+
- spec/templates/script_tag.html.erb
|