-
Notifications
You must be signed in to change notification settings - Fork 7
/
spec.html
79 lines (60 loc) · 2.33 KB
/
spec.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
<!DOCTYPE html>
<html>
<head>
<meta content='text/html;charset=UTF-8' http-equiv='Content-Type'>
<title>AjaxSubmit</title>
<link href="vendor/jasmine/jasmine.css" media="screen" rel="stylesheet" type="text/css" />
<script src="vendor/jquery-1.7.1.js" type="text/javascript"></script>
<script src="vendor/jasmine/jasmine.js" type="text/javascript"></script>
<script src="vendor/jasmine/jasmine-html.js" type="text/javascript"></script>
<script src="vendor/mock-ajax.js" type="text/javascript"></script>
<!--<script src="vendor/jasmine-ajax.js" type="text/javascript"></script>-->
<script src="vendor/jasmine-jquery.js" type="text/javascript"></script>
<script src="vendor/coffee-script.js" type="text/javascript"></script>
<script src="src/form-errors.js.coffee" type="text/coffeescript"></script>
<script src="src/ajax-submit.js.coffee" type="text/coffeescript"></script>
<script src="spec/form-errors-spec.coffee" type="text/coffeescript"></script>
<script src="spec/ajax-submit-spec.coffee" type="text/coffeescript"></script>
<script>
//<![CDATA[
var jsApiReporter;
(function() {
var jasmineEnv = jasmine.getEnv();
jsApiReporter = new jasmine.JsApiReporter();
var trivialReporter = new jasmine.TrivialReporter();
jasmineEnv.addReporter(jsApiReporter);
jasmineEnv.addReporter(trivialReporter);
jasmineEnv.specFilter = function(spec) {
return trivialReporter.specFilter(spec);
};
var currentWindowOnload = window.onload;
window.onload = function() {
if (currentWindowOnload) {
currentWindowOnload();
}
// Wait for coffee-scripts async loading
setTimeout(execJasmine, "1000");
};
function execJasmine() {
jasmineEnv.execute();
}
})();
//]]>
</script>
</head>
<body>
<div id='jasmine_content'></div>
<div style="display:none">
<form id="test_form" action="/">
<div validate="email user user.email">
<label for="email">Email:</label>
<input type="text" name="email"/>
</div>
<div validate="name">
<label for="name">Name:</label>
<input type="text" name="name"/>
</div>
</form>
</div>
</body>
</html>