Skip to content

Instantly share code, notes, and snippets.

@Aaron1011
Created January 4, 2013 01:38
Show Gist options
  • Save Aaron1011/4449194 to your computer and use it in GitHub Desktop.
Save Aaron1011/4449194 to your computer and use it in GitHub Desktop.
{% load staticfiles %}
<!DOCTYPE html>
<html>
<head>
<title>Jasmine Spec Runner</title>
<link rel="shortcut icon" type="image/png" href="{% static "coffee/lib/jasmine-1.3.1/jasmine_favicon.png" %}">
<link rel="stylesheet" type="text/css" href="{% static "coffee/lib/jasmine-1.3.1/jasmine.css" %}">
<script type="text/javascript" src="{% static "coffee/lib/jasmine-1.3.1/jasmine.js" %}"></script>
<script type="text/javascript" src="{% static "coffee/lib/jasmine-1.3.1/jasmine-html.js" %}"></script>
<script type="text/javascript" src="{% static "extras/coffee-script.js" %}"></script>
<!-- include source files here... -->
<script type="text/coffeescript" src="{% static "coffee/executedtrack.js.coffee" %}"></script>
<script type="text/coffeescript" src="{% static "coffee/track.js.coffee" %}"></script>
<!-- include spec files here... -->
<script type="text/coffeescript" src="{% static "spec/EventedTrackSpec.js.coffee" %}"></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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment