Skip to content

Commit

Permalink
+ Fix some errors in the test files
Browse files Browse the repository at this point in the history
+ Add a spec runner with all test cases
  • Loading branch information
jcsirot committed Oct 19, 2014
1 parent 97f1cd7 commit 9a3d0dd
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 10 deletions.
38 changes: 38 additions & 0 deletions test/SpecRunner.all.html
@@ -0,0 +1,38 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine Test Runner</title>
<link rel="shortcut icon" type="image/png" href="lib/jasmine-2.0.2/jasmine_favicon.png">
<link rel="stylesheet" type="text/css" href="lib/jasmine-2.0.2/jasmine.css">

<script type="text/javascript" src="lib/jasmine-2.0.2/jasmine.js"></script>
<script type="text/javascript" src="lib/jasmine-2.0.2/jasmine-html.js"></script>
<script type="text/javascript" src="lib/jasmine-2.0.2/boot.js"></script>
<script type="text/javascript" src="lib/jasmine-jsreporter/jasmine-jsreporter.js"></script>

<!-- helper functions -->
<script type="text/javascript" src="spec/helper.js"></script>

<!-- include source files here... -->
<script type="text/javascript" src="../build/digest.min.js"></script>

<!-- include spec files here... -->
<script type="text/javascript" src="spec/core.spec.js"></script>
<script type="text/javascript" src="spec/sha1.spec.js"></script>
<script type="text/javascript" src="spec/sha256.spec.js"></script>
<script type="text/javascript" src="spec/md5.spec.js"></script>
<script type="text/javascript" src="spec/pbkdf1.spec.js"></script>
<script type="text/javascript" src="spec/pbkdf2.spec.js"></script>

<script type="text/javascript">
(function() {
var jasmineEnv = jasmine.getEnv();
jasmineEnv.addReporter(new jasmine.JSReporter2());
})();
</script>
</head>
<body>

</body>
</html>
5 changes: 0 additions & 5 deletions test/SpecRunner.digest.html
Expand Up @@ -31,10 +31,5 @@
</head>
<body>

<script type="text/javascript">
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
jasmine.getEnv().execute();
</script>

</body>
</html>
5 changes: 0 additions & 5 deletions test/SpecRunner.pbkdf.html
Expand Up @@ -30,10 +30,5 @@
</head>
<body>

<script type="text/javascript">
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
jasmine.getEnv().execute();
</script>

</body>
</html>

0 comments on commit 9a3d0dd

Please sign in to comment.