blob: 8203970e225eec8c5ab1c205d31d0e0f3a19e159 (
plain)
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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Spec Runner</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-1.1.0.rc1/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="lib/jasmine/jasmine.css">
<script type="text/javascript" src="lib/jasmine/jasmine.js"></script>
<script type="text/javascript" src="lib/jasmine/jasmine-html.js"></script>
<script type="text/javascript" src="lib/sinon/sinon-1.3.4.js"></script>
<script type="text/javascript" src="lib/jasmine-sinon.js"></script>
<script type="text/javascript" src="lib/jquery-1.8.2.js"></script>
<!-- the files we are testing... -->
<script type="text/javascript" src="../lib/SHA256.js"></script>
<script type="text/javascript" src="../lib/prng4.js"></script>
<script type="text/javascript" src="../lib/rng.js"></script>
<script type="text/javascript" src="../lib/jsbn.js"></script>
<script type="text/javascript" src="../lib/jsbn2.js"></script>
<script type="text/javascript" src="../src/srp.js"></script>
<script type="text/javascript" src="../src/jqueryRest.js"></script>
<script type="text/javascript" src="../src/srp_session.js"></script>
<!-- include spec files here... -->
<script type="text/javascript" src="specHelper.js"></script>
<script type="text/javascript" src="restful/signup.js"></script>
<script type="text/javascript" src="restful/login.js"></script>
<script type="text/javascript">
(function() {
var jasmineEnv = jasmine.getEnv();
jasmineEnv.updateInterval = 1000;
var htmlReporter = new jasmine.HtmlReporter();
jasmineEnv.addReporter(htmlReporter);
jasmineEnv.specFilter = function(spec) {
return htmlReporter.specFilter(spec);
};
var currentWindowOnload = window.onload;
window.onload = function() {
if (currentWindowOnload) {
currentWindowOnload();
}
execJasmine();
};
function execJasmine() {
jasmineEnv.execute();
}
})();
</script>
</head>
<body>
<form action="." onsubmit="return register()">
<table>
<tr><td>Username:</td><td><input type="text" id="srp_username" value="testuser" /></td></tr>
<tr><td>Password:</td><td><input type="password" id="srp_password" value="password"/></td></tr>
<input type="hidden" id="srp_url" value=""/>
<input type="hidden" id="srp_forward" value="#logged_in"/>
<input type="hidden" id="srp_server" value="django"/>
</table>
<input type="submit"/>
</form>
</body>
</html>
|