Skip to content

Commit 71f2354

Browse files
author
Mat Ryer
committed
initial stuff
0 parents  commit 71f2354

File tree

8 files changed

+3523
-0
lines changed

8 files changed

+3523
-0
lines changed

src/over.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(function(global){
2+
3+
global.MakeOver = function(){
4+
return function(){};
5+
};
6+
7+
global.Over = global.MakeOver();
8+
global.Over.signature = function(){
9+
10+
11+
12+
};
13+
14+
/**
15+
* Gets the names of all
16+
*/
17+
global.Over.argnames = function(f){
18+
return f.toString().split("(")[1].split(")")[0].split(", ");
19+
};
20+
21+
})(window);

test/SpecRunner-min.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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>over-min.js - Jasmine Spec Runner</title>
6+
7+
<link rel="shortcut icon" type="image/png" href="lib/jasmine-1.3.1/jasmine_favicon.png">
8+
<link rel="stylesheet" type="text/css" href="lib/jasmine-1.3.1/jasmine.css">
9+
<script type="text/javascript" src="lib/jasmine-1.3.1/jasmine.js"></script>
10+
<script type="text/javascript" src="lib/jasmine-1.3.1/jasmine-html.js"></script>
11+
12+
<!-- include source files here... -->
13+
<script type="text/javascript" src="../min/over-min.js"></script>
14+
15+
<!-- include spec files here... -->
16+
<script type="text/javascript" src="spec/arg.js"></script>
17+
18+
<script type="text/javascript">
19+
(function() {
20+
var jasmineEnv = jasmine.getEnv();
21+
jasmineEnv.updateInterval = 1000;
22+
23+
var htmlReporter = new jasmine.HtmlReporter();
24+
25+
jasmineEnv.addReporter(htmlReporter);
26+
27+
jasmineEnv.specFilter = function(spec) {
28+
return htmlReporter.specFilter(spec);
29+
};
30+
31+
var currentWindowOnload = window.onload;
32+
33+
window.onload = function() {
34+
if (currentWindowOnload) {
35+
currentWindowOnload();
36+
}
37+
execJasmine();
38+
};
39+
40+
function execJasmine() {
41+
jasmineEnv.execute();
42+
}
43+
44+
})();
45+
</script>
46+
47+
</head>
48+
49+
<body>
50+
<div id="outside-scope">
51+
<div id="container"></div>
52+
</body>
53+
</html>

test/SpecRunner.html

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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>over.js - Jasmine Spec Runner</title>
6+
7+
<link rel="shortcut icon" type="image/png" href="lib/jasmine-1.3.1/jasmine_favicon.png">
8+
<link rel="stylesheet" type="text/css" href="lib/jasmine-1.3.1/jasmine.css">
9+
<script type="text/javascript" src="lib/jasmine-1.3.1/jasmine.js"></script>
10+
<script type="text/javascript" src="lib/jasmine-1.3.1/jasmine-html.js"></script>
11+
12+
<!-- include source files here... -->
13+
<script type="text/javascript" src="../src/over.js"></script>
14+
15+
<!-- include spec files here... -->
16+
<script type="text/javascript" src="spec/over.js"></script>
17+
18+
<script type="text/javascript">
19+
(function() {
20+
var jasmineEnv = jasmine.getEnv();
21+
jasmineEnv.updateInterval = 1000;
22+
23+
var htmlReporter = new jasmine.HtmlReporter();
24+
25+
jasmineEnv.addReporter(htmlReporter);
26+
27+
jasmineEnv.specFilter = function(spec) {
28+
return htmlReporter.specFilter(spec);
29+
};
30+
31+
var currentWindowOnload = window.onload;
32+
33+
window.onload = function() {
34+
if (currentWindowOnload) {
35+
currentWindowOnload();
36+
}
37+
execJasmine();
38+
};
39+
40+
function execJasmine() {
41+
jasmineEnv.execute();
42+
}
43+
44+
})();
45+
</script>
46+
47+
</head>
48+
49+
<body>
50+
<div id="outside-scope">
51+
<div id="container"></div>
52+
</body>
53+
</html>

test/lib/jasmine-1.3.1/MIT.LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2008-2011 Pivotal Labs
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)