
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>Flask: Jasmine Spec Runner</title>

  {% for fl in jasmine %}
  <script type="text/javascript" src="{{ fl }}"></script>
  {% endfor %}

  {% for fl in files %}
  <script type="text/javascript" src="{{ fl }}"></script>
  {% endfor %}



  <script type="text/javascript">
    (function() {
      var jasmineEnv = jasmine.getEnv();
      jasmineEnv.updateInterval = 1000;

      var trivialReporter = new jasmine.TrivialReporter();

      jasmineEnv.addReporter(new jasmine.ConsoleReporter());
      jasmineEnv.addReporter(new jasmine.JUnitXmlReporter());
      jasmineEnv.addReporter(trivialReporter);



      jasmineEnv.specFilter = function(spec) {
        return trivialReporter.specFilter(spec);
      };

      var currentWindowOnload = window.onload;
      function execJasmine() {

        jasmineEnv.execute();
      }

      window.onload = function() {
        if (currentWindowOnload) {
          currentWindowOnload();
        }
        execJasmine();
      };
    })();
  </script>
</head>
<body>
</body>
</html>