-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathtests.html
147 lines (124 loc) · 4.88 KB
/
tests.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Jasmine Spec Runner v2.5.2</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-2.5.2/jasmine_favicon.png">
<link rel="stylesheet" href="lib/jasmine-2.5.2/jasmine.css">
<script src="lib/jasmine-2.5.2/jasmine.js"></script>
<script src="lib/jasmine-2.5.2/jasmine-html.js"></script>
<!-- load the game subsystem -->
<script src="lib/jQuery.js"></script>
<script src="lib/dojo.js"></script>
<script src="lib/lz-string.js"></script>
<script src="lib/dropbox.js"></script>
<script src="lib/system.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-29812134-1', 'bloodrizer.ru');
ga('send', 'pageview');
</script>
<link rel="stylesheet" href="res/default.css" type="text/css">
<link rel="stylesheet" href="res/theme_dark.css" type="text/css">
<link rel="stylesheet" href="res/theme_grassy.css" type="text/css">
<link rel="stylesheet" href="res/theme_sleek.css" type="text/css">
<link rel="stylesheet" href="res/theme_gold.css" type="text/css">
<link rel="stylesheet" href="res/theme_space.css" type="text/css">
<script type="text/javascript">
var version = "_" + Date.now();
function _import(i, def, modules){
if (!def){
return System.import(modules[i] + ".js?v=" + version);
} else {
return def.then(function(){
return System.import(modules[i] + ".js?v=" + version);
});
}
}
dojo.addOnLoad(function(){
window.jasmine = jasmineRequire.core(jasmineRequire);
jasmineRequire.html(jasmine);
var env = jasmine.getEnv();
var jasmineInterface = jasmineRequire.interface(jasmine, env);
extend(window, jasmineInterface);
var queryString = new jasmine.QueryString({
getWindowLocation: function() { return window.location; }
});
var catchingExceptions = queryString.getParam("catch");
env.catchExceptions(typeof catchingExceptions === "undefined" ? true : catchingExceptions);
var throwingExpectationFailures = queryString.getParam("throwFailures");
env.throwOnExpectationFailure(throwingExpectationFailures);
var random = queryString.getParam("random");
env.randomizeTests(random);
var seed = queryString.getParam("seed");
if (seed) {
env.seed(seed);
}
var htmlReporter = new jasmine.HtmlReporter({
env: env,
onRaiseExceptionsClick: function() { queryString.navigateWithNewParam("catch", !env.catchingExceptions()); },
onThrowExpectationsClick: function() { queryString.navigateWithNewParam("throwFailures", !env.throwingExpectationFailures()); },
onRandomClick: function() { queryString.navigateWithNewParam("random", !env.randomTests()); },
addToExistingQueryString: function(key, value) { return queryString.fullStringWithNewParam(key, value); },
getContainer: function() { return document.body; },
createElement: function() { return document.createElement.apply(document, arguments); },
createTextNode: function() { return document.createTextNode.apply(document, arguments); },
timer: new jasmine.Timer()
});
env.addReporter(jasmineInterface.jsApiReporter);
env.addReporter(htmlReporter);
var specFilter = new jasmine.HtmlSpecFilter({
filterString: function() { return queryString.getParam("spec"); }
});
env.specFilter = function(spec) {
return specFilter.matches(spec.getFullName());
};
window.setTimeout = window.setTimeout;
window.setInterval = window.setInterval;
window.clearTimeout = window.clearTimeout;
window.clearInterval = window.clearInterval;
function extend(destination, source) {
for (var property in source) destination[property] = source[property];
return destination;
}
SystemJS.config({
baseURL: ''
});
var modules = [
"core",
"js/resources",
"js/calendar",
"js/buildings",
"js/village",
"js/science",
"js/workshop",
"js/diplomacy",
"js/religion",
"js/achievements",
"js/space",
"js/prestige",
"js/time",
"js/stats",
"js/challenges",
"game",
"js/ui",
"js/toolbar",
"test/spec/game-spec"
];
var def = System.import('core.js');
for (var i in modules){
def = _import(i, def, modules);
}
def.then(function() {
htmlReporter.initialize();
env.execute();
});
});
</script>
</head>
<body>
</body>
</html>