{% load staticfiles %}
<!DOCTYPE html> 
<html data-testing="1">
  <head>
    <title>{{ title }}</title>
    <link rel="stylesheet" href="{% static 'qunit.css' %}" type="text/css" media="screen">  
    <script type="text/javascript" src="{% static 'qunit.js' %}"></script>     
    <script type="text/javascript" src="{% static 'qunit-config.js' %}"></script>
    <script type="text/javascript">
        QUnit.config.autostart = false;
        {% if autostart %}
        QUnit.Django.autostart = true;
        {% endif %}
    </script>
    {% for dep in dependencies %}
      <script type="text/javascript" src="{% static dep %}"></script>
    {% endfor %}
    {% for raw_script_url in raw_script_urls %}
      <script type="text/javascript" src="{{ raw_script_url }}"></script>
    {% endfor %}
    <script type="text/javascript" src="{% static test_file %}"></script>
  </head>
  <body>
    <h1 id="qunit-header">{{ title }}</h1>
    <h2 id="qunit-banner"></h2>
    <h2 id="qunit-userAgent"></h2>
    {% if not autostart %}
      <p><a href="#" onclick="QUnit.start(); return false;">Start Tests</a></p>
    {% endif %}
    <ol id="qunit-tests">
    </ol>
    <div id="qunit-fixture">
    {% for fixture in fixtures %}
        {% include fixture %}
    {% endfor %}
    </div>
    <div id="qunit-html">
    {% for raw_html in html_strings %}
      {{ raw_html|safe }}
    {% endfor %}
    </div>
  </body>
  </body>
</html>
