<html>
  <head>
    <title>Backbone.js Tests</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link rel="stylesheet" href="../../../notes/test/js/lib/mocha.css" />

    <!-- JavaScript Test Libraries. -->
    <script src="../../../notes/test/js/lib/mocha.js"></script>
    <script src="../../../notes/test/js/lib/chai.js"></script>
    <script src="../../../notes/test/js/lib/sinon-chai.js"></script>
    <script src="../../../notes/test/js/lib/sinon.js"></script>

    <!-- JavaScript Core Libraries -->
    <script src="../../../notes/app/js/lib/underscore.js"></script>
    <script src="../../../notes/app/js/lib/jquery.js"></script>
    <script src="../../../notes/app/js/lib/json2.js"></script>
    <script src="../../../notes/app/js/lib/backbone.js"></script>
    <script src="../../../notes/app/js/lib/backbone.localStorage.js"></script>
    <script src="../../../notes/app/js/lib/bootstrap/js/bootstrap.js"></script>
    <script src="../../../notes/app/js/lib/showdown/showdown.js"></script>

    <!-- JavaScript Application Libraries -->
    <script src="../../../notes/app/js/app/namespace.js"></script>
    <script src="../../../notes/app/js/app/config.js"></script>
    <script>
      // Test overrides (before any app components).
      App.Config = _.extend(App.Config, {
        storeName: "notes-test" // localStorage for tests.
      });
    </script>
    <script src="../../../notes/app/js/app/models/note.js"></script>
    <script src="../../../notes/app/js/app/collections/notes.js"></script>
    <script src="../../../notes/app/js/app/templates/templates.js"></script>
    <script src="../../../notes/app/js/app/views/note-nav.js"></script>
    <script src="../../../notes/app/js/app/views/note-view.js"></script>
    <script src="../../../notes/app/js/app/views/note.js"></script>
    <script src="../../../notes/app/js/app/views/notes-item.js"></script> <!-- NEW -->
    <!-- SKIPPED <script src="../../../notes/app/js/app/views/notes-filter.js"></script> -->
    <!-- SKIPPED <script src="../../../notes/app/js/app/views/notes.js"></script> -->
    <!-- <script src="../../../notes/app/js/app/routers/router.js"></script> NEW -->
    <script src="js/spec/routers/router.js"></script> <!-- FAKED -->

    <!-- Test Setup -->
    <script>
      var expect = chai.expect;
      mocha.setup("bdd");

      window.onload = function () {
        (window.mochaPhantomJS || mocha).run();
      };
    </script>

    <!-- Tests. -->
    <script src="../../../notes/test/js/spec/views/notes-item.spec.js"></script>
    <script src="js/spec/routers/router.spec.js"></script>
  </head>
  <body>
    <div id="mocha"></div>

    <!-- Test Fixtures. -->
    <div id="fixtures"
         style="display: none; visibility: hidden;"></div>

  </body>
</html>
