-
-
Save mguinada/3437558 to your computer and use it in GitHub Desktop.
Jasmine SpecRunner
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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="spec/jasmine/jasmine_favicon.png"> | |
<link rel="stylesheet" type="text/css" href="spec/jasmine/jasmine.css"> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
<script src="spec/jasmine/jasmine.js"></script> | |
<script src="spec/jasmine/jasmine-html.js"></script> | |
<script src="spec/jasmine/jasmine-jquery-1.3.1.js"></script> | |
<!-- include source files here... --> | |
<script src="js/calculator.js"></script> | |
<!-- include spec files here... --> | |
<script src="spec/calculatorSpec.js"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
(function() { | |
var jasmineEnv = jasmine.getEnv(); | |
jasmineEnv.updateInterval = 1000; | |
var trivialReporter = new jasmine.TrivialReporter(); | |
jasmineEnv.addReporter(trivialReporter); | |
jasmineEnv.specFilter = function(spec) { | |
return trivialReporter.specFilter(spec); | |
}; | |
var currentWindowOnload = window.onload; | |
window.onload = function() { | |
if (currentWindowOnload) { | |
currentWindowOnload(); | |
} | |
execJasmine(); | |
}; | |
function execJasmine() { | |
jasmineEnv.execute(); | |
} | |
})(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment