doctype html
html(lang="en")
  head
    title Girder test environment
    link(href="../../test/lib/jasmine-1.3.1/jasmine.css", rel="stylesheet")
    script(src="../../test/testUtils.js")
    script(src="testing.min.js")
    script(src="libs.min.js")

    each css in cssFiles
      link(href="#{css}", rel="stylesheet", type="text/css")
    each js in jsFiles
      script(src="#{js}", data-cover)

    script(type="text/javascript").
      (function () {
          var jasmineEnv = jasmine.getEnv();
          var consoleReporter = new jasmine.ConsoleReporter();
          window.jasmine_phantom_reporter = consoleReporter;

          jasmineEnv.addReporter(consoleReporter);

          var currentWindowOnload = window.onload;

          window.onload = function () {
              if (currentWindowOnload) {
                  currentWindowOnload();
              }
              jasmineEnv.execute();
          };
      })();

  body
    #g-global-info-apiroot.hide http://localhost:50001#{apiRoot}
    #g-global-info-staticroot.hide http://localhost:50001#{staticRoot}
