Skip to content

Commit

Permalink
upgraded jasmine to 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Jeffery committed May 17, 2012
1 parent 649ff81 commit 2eb7bec
Show file tree
Hide file tree
Showing 4 changed files with 786 additions and 368 deletions.
39 changes: 32 additions & 7 deletions SpecRunner.html
Expand Up @@ -2,7 +2,7 @@
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Jasmine-jQuery Test Runner</title>
<title>Jasmine-jQuery Spec Runner</title>
<link rel="stylesheet" type="text/css" href="vendor/jasmine/jasmine.css">

<script type="text/javascript" src="vendor/jasmine/jasmine.js"></script>
Expand All @@ -12,13 +12,38 @@

<script type="text/javascript" src="lib/jasmine-jquery.js"></script>
<script type="text/javascript" src="spec/suites/jasmine-jquery-spec.js"></script>
</head>
<body>

<script type="text/javascript">
jasmine.getEnv().addReporter(new jasmine.TrivialReporter());
jasmine.getEnv().execute();
</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>
</body>
</html>

0 comments on commit 2eb7bec

Please sign in to comment.