repla 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/applescript/{load_html.scpt → load.scpt} +0 -0
- data/lib/applescript/{load_html_with_base_url.scpt → load_with_root_access_directory.scpt} +0 -0
- data/lib/repla/dependencies/html/index.html +25 -0
- data/lib/repla/dependencies/lib/view.rb +5 -5
- data/lib/repla/dependencies.rb +1 -2
- data/lib/repla/lib/constants.rb +0 -2
- data/lib/repla/lib/module.rb +1 -24
- data/lib/repla/lib/view/javascript.rb +7 -1
- data/lib/repla/lib/view/resources.rb +0 -38
- data/lib/repla/lib/view.rb +0 -1
- data/lib/repla/lib/window.rb +10 -15
- data/lib/repla/logger/test/Rakefile +7 -9
- data/lib/repla/logger/test/lib/test_setup.rb +10 -0
- data/lib/repla/logger/test/lib/test_view_helper.rb +1 -1
- data/lib/repla/logger/test/run_tests.sh +3 -1
- data/lib/repla/logger/test/tc_logger.rb +18 -21
- data/lib/repla/logger.rb +1 -2
- data/lib/repla/repl/html/index.html +22 -0
- data/lib/repla/repl/lib/view.rb +5 -50
- data/lib/repla/repl.rb +1 -2
- data/lib/repla/resources/css/raster.css +131 -0
- data/lib/repla/resources/js/bullets/Gruntfile.js +30 -0
- data/lib/repla/resources/js/bullets/README.md +3 -0
- data/lib/repla/resources/js/bullets/bullets.js +82 -0
- data/lib/repla/resources/js/bullets/example/css/bullets.css +6 -0
- data/lib/repla/resources/js/bullets/example/css/raster.css +131 -0
- data/lib/repla/resources/js/bullets/example/css/style.css +7 -0
- data/lib/repla/resources/js/bullets/example/index.html +137 -0
- data/lib/repla/resources/js/bullets/example/jade/content.jade +10 -0
- data/lib/repla/resources/js/bullets/example/jade/css.jade +3 -0
- data/lib/repla/resources/js/bullets/example/jade/index.jade +10 -0
- data/lib/repla/resources/js/bullets/example/jade/javascript.jade +5 -0
- data/lib/repla/resources/js/bullets/example/js/handlebars.js +2278 -0
- data/lib/repla/resources/js/bullets/example/js/jquery.js +9789 -0
- data/lib/repla/resources/js/bullets/example/js/mousetrap.js +910 -0
- data/lib/repla/resources/js/bullets/example/js/mousetrap_config.js +14 -0
- data/lib/repla/resources/js/bullets/example/js/zepto.js +1565 -0
- data/lib/repla/resources/js/bullets/package.json +28 -0
- data/lib/repla/resources/js/bullets/test/lib/css/mocha.css +270 -0
- data/lib/repla/resources/js/bullets/test/lib/index.html +153 -0
- data/lib/repla/resources/js/bullets/test/lib/jade/index.jade +13 -0
- data/lib/repla/resources/js/bullets/test/lib/jade/mocha.html +15 -0
- data/lib/repla/resources/js/bullets/test/lib/js/chai.js +4613 -0
- data/lib/repla/resources/js/bullets/test/lib/js/mocha.js +5726 -0
- data/lib/repla/resources/js/bullets/test/lib/js/test_helper.js +26 -0
- data/lib/repla/resources/js/bullets/test/run_tests.rb +7 -0
- data/lib/repla/resources/js/bullets/test/test.js +131 -0
- data/lib/repla/resources/js/handlebars.js +2278 -0
- data/lib/repla/resources/js/mousetrap.js +910 -0
- data/lib/repla/resources/js/zepto.js +1565 -0
- data/lib/repla/test/applescript/cancel_dialog.applescript +2 -0
- data/lib/repla/test/applescript/confirm_dialog.applescript +2 -0
- data/lib/repla/test/applescript/is_running.applescript +5 -0
- data/lib/repla/test/applescript/quit.applescript +3 -0
- data/lib/repla/test/applescript/set_window_bounds.applescript +23 -0
- data/lib/repla/test/applescript/switch_windows.applescript +2 -0
- data/lib/repla/test/applescript/window_bounds.applescript +20 -0
- data/lib/repla/test/applescript/window_id.applescript +7 -0
- data/lib/repla/test/bundles/Cat.wcplugin/Contents/Info.plist +14 -0
- data/lib/repla/test/bundles/Cat.wcplugin/Contents/Resources/cat.sh +3 -0
- data/lib/repla/test/bundles/HelloWorld.wcplugin/Contents/Info.plist +14 -0
- data/lib/repla/test/bundles/HelloWorld.wcplugin/Contents/Resources/hello_world.rb +3 -0
- data/lib/repla/test/bundles/Invalid.wcplugin/Contents/Info.plist +16 -0
- data/lib/repla/test/bundles/Print.wcplugin/Contents/Info.plist +16 -0
- data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/html/css/style.css +7 -0
- data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/html/index.html +24 -0
- data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/html/js/wcprint.js +8 -0
- data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/lib/controller.rb +18 -0
- data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/lib/view.rb +13 -0
- data/lib/repla/test/bundles/Print.wcplugin/Contents/Resources/print.rb +10 -0
- data/lib/repla/test/bundles/TestEnvironment.wcplugin/Contents/Info.plist +14 -0
- data/lib/repla/test/bundles/TestEnvironment.wcplugin/Contents/Resources/constants.rb +1 -0
- data/lib/repla/test/bundles/TestEnvironment.wcplugin/Contents/Resources/test_environment.rb +35 -0
- data/lib/repla/test/bundles/TestLog.wcplugin/Contents/Info.plist +16 -0
- data/lib/repla/test/bundles/TestLog.wcplugin/Contents/Resources/test_log.rb +13 -0
- data/lib/repla/test/html/index.html +36 -0
- data/lib/repla/test/html/indexjquery.html +37 -0
- data/lib/repla/test/html/js/zepto.js +1565 -0
- data/lib/repla/test/js/firstcode.js +3 -0
- data/lib/repla/test/js/lastcode.js +3 -0
- data/lib/repla/test/js/nodom.js +5 -0
- data/lib/repla/test/js/text.js +1 -0
- data/lib/repla/test/js/textjquery.js +1 -0
- data/lib/repla/test/js/title.js +1 -0
- data/lib/repla/test/lib/helper.rb +121 -0
- data/lib/repla/test.rb +51 -0
- data/lib/repla.rb +6 -6
- metadata +78 -14
- data/lib/repla/dependencies/views/view.html.erb +0 -25
- data/lib/repla/extension_constants.rb +0 -1
- data/lib/repla/lib/view/erb.rb +0 -17
- data/lib/repla/logger/test/lib/test_constants.rb +0 -8
- data/lib/repla/repl/view/view.html.erb +0 -12
- /data/lib/repla/dependencies/{css → html/css}/style.css +0 -0
- /data/lib/repla/dependencies/{js → html/js}/wcdependencies.js +0 -0
- /data/lib/repla/repl/{css → html/css}/style.css +0 -0
- /data/lib/repla/repl/{js → html/js}/wcrepl.js +0 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"name": "bullets",
|
3
|
+
"version": "0.0.1",
|
4
|
+
"description": "A simple JavaScript library to give outliner functionality to an HTML document.",
|
5
|
+
"main": "bullets.js",
|
6
|
+
"directories": {
|
7
|
+
"example": "example",
|
8
|
+
"test": "test"
|
9
|
+
},
|
10
|
+
"scripts": {
|
11
|
+
"test": "test/run_tests.rb"
|
12
|
+
},
|
13
|
+
"repository": {
|
14
|
+
"type": "git",
|
15
|
+
"url": "https://github.com/robenkleene/bullets"
|
16
|
+
},
|
17
|
+
"author": "Roben Kleene",
|
18
|
+
"license": "BSD-2-Clause",
|
19
|
+
"bugs": {
|
20
|
+
"url": "https://github.com/robenkleene/bullets/issues"
|
21
|
+
},
|
22
|
+
"homepage": "https://github.com/robenkleene/bullets",
|
23
|
+
"devDependencies": {
|
24
|
+
"grunt": "~0.4.2",
|
25
|
+
"grunt-contrib-jade": "~0.8.0",
|
26
|
+
"grunt-contrib-watch": "~0.5.3"
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,270 @@
|
|
1
|
+
@charset "utf-8";
|
2
|
+
|
3
|
+
body {
|
4
|
+
margin:0;
|
5
|
+
}
|
6
|
+
|
7
|
+
#mocha {
|
8
|
+
font: 20px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
9
|
+
margin: 60px 50px;
|
10
|
+
}
|
11
|
+
|
12
|
+
#mocha ul,
|
13
|
+
#mocha li {
|
14
|
+
margin: 0;
|
15
|
+
padding: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
#mocha ul {
|
19
|
+
list-style: none;
|
20
|
+
}
|
21
|
+
|
22
|
+
#mocha h1,
|
23
|
+
#mocha h2 {
|
24
|
+
margin: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
#mocha h1 {
|
28
|
+
margin-top: 15px;
|
29
|
+
font-size: 1em;
|
30
|
+
font-weight: 200;
|
31
|
+
}
|
32
|
+
|
33
|
+
#mocha h1 a {
|
34
|
+
text-decoration: none;
|
35
|
+
color: inherit;
|
36
|
+
}
|
37
|
+
|
38
|
+
#mocha h1 a:hover {
|
39
|
+
text-decoration: underline;
|
40
|
+
}
|
41
|
+
|
42
|
+
#mocha .suite .suite h1 {
|
43
|
+
margin-top: 0;
|
44
|
+
font-size: .8em;
|
45
|
+
}
|
46
|
+
|
47
|
+
#mocha .hidden {
|
48
|
+
display: none;
|
49
|
+
}
|
50
|
+
|
51
|
+
#mocha h2 {
|
52
|
+
font-size: 12px;
|
53
|
+
font-weight: normal;
|
54
|
+
cursor: pointer;
|
55
|
+
}
|
56
|
+
|
57
|
+
#mocha .suite {
|
58
|
+
margin-left: 15px;
|
59
|
+
}
|
60
|
+
|
61
|
+
#mocha .test {
|
62
|
+
margin-left: 15px;
|
63
|
+
overflow: hidden;
|
64
|
+
}
|
65
|
+
|
66
|
+
#mocha .test.pending:hover h2::after {
|
67
|
+
content: '(pending)';
|
68
|
+
font-family: arial, sans-serif;
|
69
|
+
}
|
70
|
+
|
71
|
+
#mocha .test.pass.medium .duration {
|
72
|
+
background: #c09853;
|
73
|
+
}
|
74
|
+
|
75
|
+
#mocha .test.pass.slow .duration {
|
76
|
+
background: #b94a48;
|
77
|
+
}
|
78
|
+
|
79
|
+
#mocha .test.pass::before {
|
80
|
+
content: '✓';
|
81
|
+
font-size: 12px;
|
82
|
+
display: block;
|
83
|
+
float: left;
|
84
|
+
margin-right: 5px;
|
85
|
+
color: #00d6b2;
|
86
|
+
}
|
87
|
+
|
88
|
+
#mocha .test.pass .duration {
|
89
|
+
font-size: 9px;
|
90
|
+
margin-left: 5px;
|
91
|
+
padding: 2px 5px;
|
92
|
+
color: #fff;
|
93
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
|
94
|
+
-moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
|
95
|
+
box-shadow: inset 0 1px 1px rgba(0,0,0,.2);
|
96
|
+
-webkit-border-radius: 5px;
|
97
|
+
-moz-border-radius: 5px;
|
98
|
+
-ms-border-radius: 5px;
|
99
|
+
-o-border-radius: 5px;
|
100
|
+
border-radius: 5px;
|
101
|
+
}
|
102
|
+
|
103
|
+
#mocha .test.pass.fast .duration {
|
104
|
+
display: none;
|
105
|
+
}
|
106
|
+
|
107
|
+
#mocha .test.pending {
|
108
|
+
color: #0b97c4;
|
109
|
+
}
|
110
|
+
|
111
|
+
#mocha .test.pending::before {
|
112
|
+
content: '◦';
|
113
|
+
color: #0b97c4;
|
114
|
+
}
|
115
|
+
|
116
|
+
#mocha .test.fail {
|
117
|
+
color: #c00;
|
118
|
+
}
|
119
|
+
|
120
|
+
#mocha .test.fail pre {
|
121
|
+
color: black;
|
122
|
+
}
|
123
|
+
|
124
|
+
#mocha .test.fail::before {
|
125
|
+
content: '✖';
|
126
|
+
font-size: 12px;
|
127
|
+
display: block;
|
128
|
+
float: left;
|
129
|
+
margin-right: 5px;
|
130
|
+
color: #c00;
|
131
|
+
}
|
132
|
+
|
133
|
+
#mocha .test pre.error {
|
134
|
+
color: #c00;
|
135
|
+
max-height: 300px;
|
136
|
+
overflow: auto;
|
137
|
+
}
|
138
|
+
|
139
|
+
/**
|
140
|
+
* (1): approximate for browsers not supporting calc
|
141
|
+
* (2): 42 = 2*15 + 2*10 + 2*1 (padding + margin + border)
|
142
|
+
* ^^ seriously
|
143
|
+
*/
|
144
|
+
#mocha .test pre {
|
145
|
+
display: block;
|
146
|
+
float: left;
|
147
|
+
clear: left;
|
148
|
+
font: 12px/1.5 monaco, monospace;
|
149
|
+
margin: 5px;
|
150
|
+
padding: 15px;
|
151
|
+
border: 1px solid #eee;
|
152
|
+
max-width: 85%; /*(1)*/
|
153
|
+
max-width: calc(100% - 42px); /*(2)*/
|
154
|
+
word-wrap: break-word;
|
155
|
+
border-bottom-color: #ddd;
|
156
|
+
-webkit-border-radius: 3px;
|
157
|
+
-webkit-box-shadow: 0 1px 3px #eee;
|
158
|
+
-moz-border-radius: 3px;
|
159
|
+
-moz-box-shadow: 0 1px 3px #eee;
|
160
|
+
border-radius: 3px;
|
161
|
+
}
|
162
|
+
|
163
|
+
#mocha .test h2 {
|
164
|
+
position: relative;
|
165
|
+
}
|
166
|
+
|
167
|
+
#mocha .test a.replay {
|
168
|
+
position: absolute;
|
169
|
+
top: 3px;
|
170
|
+
right: 0;
|
171
|
+
text-decoration: none;
|
172
|
+
vertical-align: middle;
|
173
|
+
display: block;
|
174
|
+
width: 15px;
|
175
|
+
height: 15px;
|
176
|
+
line-height: 15px;
|
177
|
+
text-align: center;
|
178
|
+
background: #eee;
|
179
|
+
font-size: 15px;
|
180
|
+
-moz-border-radius: 15px;
|
181
|
+
border-radius: 15px;
|
182
|
+
-webkit-transition: opacity 200ms;
|
183
|
+
-moz-transition: opacity 200ms;
|
184
|
+
transition: opacity 200ms;
|
185
|
+
opacity: 0.3;
|
186
|
+
color: #888;
|
187
|
+
}
|
188
|
+
|
189
|
+
#mocha .test:hover a.replay {
|
190
|
+
opacity: 1;
|
191
|
+
}
|
192
|
+
|
193
|
+
#mocha-report.pass .test.fail {
|
194
|
+
display: none;
|
195
|
+
}
|
196
|
+
|
197
|
+
#mocha-report.fail .test.pass {
|
198
|
+
display: none;
|
199
|
+
}
|
200
|
+
|
201
|
+
#mocha-report.pending .test.pass,
|
202
|
+
#mocha-report.pending .test.fail {
|
203
|
+
display: none;
|
204
|
+
}
|
205
|
+
#mocha-report.pending .test.pass.pending {
|
206
|
+
display: block;
|
207
|
+
}
|
208
|
+
|
209
|
+
#mocha-error {
|
210
|
+
color: #c00;
|
211
|
+
font-size: 1.5em;
|
212
|
+
font-weight: 100;
|
213
|
+
letter-spacing: 1px;
|
214
|
+
}
|
215
|
+
|
216
|
+
#mocha-stats {
|
217
|
+
position: fixed;
|
218
|
+
top: 15px;
|
219
|
+
right: 10px;
|
220
|
+
font-size: 12px;
|
221
|
+
margin: 0;
|
222
|
+
color: #888;
|
223
|
+
z-index: 1;
|
224
|
+
}
|
225
|
+
|
226
|
+
#mocha-stats .progress {
|
227
|
+
float: right;
|
228
|
+
padding-top: 0;
|
229
|
+
}
|
230
|
+
|
231
|
+
#mocha-stats em {
|
232
|
+
color: black;
|
233
|
+
}
|
234
|
+
|
235
|
+
#mocha-stats a {
|
236
|
+
text-decoration: none;
|
237
|
+
color: inherit;
|
238
|
+
}
|
239
|
+
|
240
|
+
#mocha-stats a:hover {
|
241
|
+
border-bottom: 1px solid #eee;
|
242
|
+
}
|
243
|
+
|
244
|
+
#mocha-stats li {
|
245
|
+
display: inline-block;
|
246
|
+
margin: 0 5px;
|
247
|
+
list-style: none;
|
248
|
+
padding-top: 11px;
|
249
|
+
}
|
250
|
+
|
251
|
+
#mocha-stats canvas {
|
252
|
+
width: 40px;
|
253
|
+
height: 40px;
|
254
|
+
}
|
255
|
+
|
256
|
+
#mocha code .comment { color: #ddd; }
|
257
|
+
#mocha code .init { color: #2f6fad; }
|
258
|
+
#mocha code .string { color: #5890ad; }
|
259
|
+
#mocha code .keyword { color: #8a6343; }
|
260
|
+
#mocha code .number { color: #2f6fad; }
|
261
|
+
|
262
|
+
@media screen and (max-device-width: 480px) {
|
263
|
+
#mocha {
|
264
|
+
margin: 60px 0px;
|
265
|
+
}
|
266
|
+
|
267
|
+
#mocha #stats {
|
268
|
+
position: absolute;
|
269
|
+
}
|
270
|
+
}
|
@@ -0,0 +1,153 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<link rel="stylesheet" href="css/mocha.css">
|
6
|
+
<script src="js/test_helper.js"></script>
|
7
|
+
<title>Bullets Tests</title>
|
8
|
+
<link rel="stylesheet" href="../../example/css/bullets.css">
|
9
|
+
<link rel="stylesheet" href="../../example/css/raster.css">
|
10
|
+
<link rel="stylesheet" href="../../example/css/style.css">
|
11
|
+
<script src="../../example/js/handlebars.js"></script>
|
12
|
+
<script src="../../example/js/jquery.js"></script>
|
13
|
+
<script src="../../example/js/mousetrap.js"></script>
|
14
|
+
<script src="../../example/js/mousetrap_config.js"></script>
|
15
|
+
<script src="../../example/../bullets.js"></script>
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
<section>
|
19
|
+
<header>
|
20
|
+
<h5><a href="google.com">Anchor 0</a></h5>
|
21
|
+
<ul>
|
22
|
+
<li>List Item 0</li>
|
23
|
+
<li>List Item 1</li>
|
24
|
+
<li>List Item 2</li>
|
25
|
+
<li>List Item 3</li>
|
26
|
+
<li>List Item 4</li>
|
27
|
+
</ul>
|
28
|
+
</header>
|
29
|
+
</section>
|
30
|
+
<section>
|
31
|
+
<header>
|
32
|
+
<h5><a href="google.com">Anchor 1</a></h5>
|
33
|
+
<ul>
|
34
|
+
<li>List Item 0</li>
|
35
|
+
<li>List Item 1</li>
|
36
|
+
<li>List Item 2</li>
|
37
|
+
<li>List Item 3</li>
|
38
|
+
<li>List Item 4</li>
|
39
|
+
</ul>
|
40
|
+
</header>
|
41
|
+
</section>
|
42
|
+
<section>
|
43
|
+
<header>
|
44
|
+
<h5><a href="google.com">Anchor 2</a></h5>
|
45
|
+
<ul>
|
46
|
+
<li>List Item 0</li>
|
47
|
+
<li>List Item 1</li>
|
48
|
+
<li>List Item 2</li>
|
49
|
+
<li>List Item 3</li>
|
50
|
+
<li>List Item 4</li>
|
51
|
+
</ul>
|
52
|
+
</header>
|
53
|
+
</section>
|
54
|
+
<section>
|
55
|
+
<header>
|
56
|
+
<h5><a href="google.com">Anchor 3</a></h5>
|
57
|
+
<ul>
|
58
|
+
<li>List Item 0</li>
|
59
|
+
<li>List Item 1</li>
|
60
|
+
<li>List Item 2</li>
|
61
|
+
<li>List Item 3</li>
|
62
|
+
<li>List Item 4</li>
|
63
|
+
</ul>
|
64
|
+
</header>
|
65
|
+
</section>
|
66
|
+
<section>
|
67
|
+
<header>
|
68
|
+
<h5><a href="google.com">Anchor 4</a></h5>
|
69
|
+
<ul>
|
70
|
+
<li>List Item 0</li>
|
71
|
+
<li>List Item 1</li>
|
72
|
+
<li>List Item 2</li>
|
73
|
+
<li>List Item 3</li>
|
74
|
+
<li>List Item 4</li>
|
75
|
+
</ul>
|
76
|
+
</header>
|
77
|
+
</section>
|
78
|
+
<section>
|
79
|
+
<header>
|
80
|
+
<h5><a href="google.com">Anchor 5</a></h5>
|
81
|
+
<ul>
|
82
|
+
<li>List Item 0</li>
|
83
|
+
<li>List Item 1</li>
|
84
|
+
<li>List Item 2</li>
|
85
|
+
<li>List Item 3</li>
|
86
|
+
<li>List Item 4</li>
|
87
|
+
</ul>
|
88
|
+
</header>
|
89
|
+
</section>
|
90
|
+
<section>
|
91
|
+
<header>
|
92
|
+
<h5><a href="google.com">Anchor 6</a></h5>
|
93
|
+
<ul>
|
94
|
+
<li>List Item 0</li>
|
95
|
+
<li>List Item 1</li>
|
96
|
+
<li>List Item 2</li>
|
97
|
+
<li>List Item 3</li>
|
98
|
+
<li>List Item 4</li>
|
99
|
+
</ul>
|
100
|
+
</header>
|
101
|
+
</section>
|
102
|
+
<section>
|
103
|
+
<header>
|
104
|
+
<h5><a href="google.com">Anchor 7</a></h5>
|
105
|
+
<ul>
|
106
|
+
<li>List Item 0</li>
|
107
|
+
<li>List Item 1</li>
|
108
|
+
<li>List Item 2</li>
|
109
|
+
<li>List Item 3</li>
|
110
|
+
<li>List Item 4</li>
|
111
|
+
</ul>
|
112
|
+
</header>
|
113
|
+
</section>
|
114
|
+
<section>
|
115
|
+
<header>
|
116
|
+
<h5><a href="google.com">Anchor 8</a></h5>
|
117
|
+
<ul>
|
118
|
+
<li>List Item 0</li>
|
119
|
+
<li>List Item 1</li>
|
120
|
+
<li>List Item 2</li>
|
121
|
+
<li>List Item 3</li>
|
122
|
+
<li>List Item 4</li>
|
123
|
+
</ul>
|
124
|
+
</header>
|
125
|
+
</section>
|
126
|
+
<section>
|
127
|
+
<header>
|
128
|
+
<h5><a href="google.com">Anchor 9</a></h5>
|
129
|
+
<ul>
|
130
|
+
<li>List Item 0</li>
|
131
|
+
<li>List Item 1</li>
|
132
|
+
<li>List Item 2</li>
|
133
|
+
<li>List Item 3</li>
|
134
|
+
<li>List Item 4</li>
|
135
|
+
</ul>
|
136
|
+
</header>
|
137
|
+
</section>
|
138
|
+
<div id="mocha"></div>
|
139
|
+
<script src="js/mocha.js"></script>
|
140
|
+
<script src="js/chai.js"></script>
|
141
|
+
<script>
|
142
|
+
mocha.ui('bdd');
|
143
|
+
mocha.reporter('html');
|
144
|
+
// expect = chai.expect;
|
145
|
+
var should = chai.should();
|
146
|
+
</script>
|
147
|
+
<script src="../test.js"></script>
|
148
|
+
<script>
|
149
|
+
if (window.mochaPhantomJS) { mochaPhantomJS.run(); }
|
150
|
+
else { mocha.run(); }
|
151
|
+
</script>
|
152
|
+
</body>
|
153
|
+
</html>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
doctype 5
|
2
|
+
html(lang="en")
|
3
|
+
head
|
4
|
+
meta(charset="utf-8")
|
5
|
+
link(rel='stylesheet', href='css/mocha.css')
|
6
|
+
script(src='js/test_helper.js')
|
7
|
+
title= "Bullets Tests"
|
8
|
+
- var resourceBasePath = '../../example/'
|
9
|
+
include ../../../example/jade/css.jade
|
10
|
+
include ../../../example/jade/javascript.jade
|
11
|
+
body
|
12
|
+
include ../../../example/jade/content.jade
|
13
|
+
include mocha.html
|
@@ -0,0 +1,15 @@
|
|
1
|
+
|
2
|
+
<div id="mocha"></div>
|
3
|
+
<script src="js/mocha.js"></script>
|
4
|
+
<script src="js/chai.js"></script>
|
5
|
+
<script>
|
6
|
+
mocha.ui('bdd');
|
7
|
+
mocha.reporter('html');
|
8
|
+
// expect = chai.expect;
|
9
|
+
var should = chai.should();
|
10
|
+
</script>
|
11
|
+
<script src="../test.js"></script>
|
12
|
+
<script>
|
13
|
+
if (window.mochaPhantomJS) { mochaPhantomJS.run(); }
|
14
|
+
else { mocha.run(); }
|
15
|
+
</script>
|