summaryrefslogtreecommitdiff
path: root/spec/RestfulSpecRunner.html
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2012-08-04 16:01:05 +0200
committerAzul <azul@riseup.net>2012-08-04 16:01:05 +0200
commitf0b308e4081a4c804da4f7bfbe4802a8999d4c26 (patch)
treec577b8973320e1e17ab3d3dbe477f2b01c85b0fe /spec/RestfulSpecRunner.html
parent94d1938e2e5d0ee5e8e7b9a8ed44a067677e0133 (diff)
copied jqueryRest and restful specs from django
no real change yet
Diffstat (limited to 'spec/RestfulSpecRunner.html')
-rw-r--r--spec/RestfulSpecRunner.html75
1 files changed, 75 insertions, 0 deletions
diff --git a/spec/RestfulSpecRunner.html b/spec/RestfulSpecRunner.html
new file mode 100644
index 0000000..bc4715f
--- /dev/null
+++ b/spec/RestfulSpecRunner.html
@@ -0,0 +1,75 @@
+<!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>
+
+ <!-- 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="../lib/srp.js"></script>
+ <script type="text/javascript" src="../lib/jqueryRest.js"></script>
+ <script type="text/javascript" src="../lib/srp_register.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="user" /></td></tr>
+ <tr><td>Password:</td><td><input type="password" id="srp_password" value="opensesami"/></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>