browser/components/loop/test/shared/index.html
author Mark Banner <standard8@mozilla.com>
Mon, 30 Mar 2015 14:08:53 +0100
changeset 258225 d30e64ad7e1f
parent 254284 818a084951ec
permissions -rw-r--r--
Bug 1139586 - Attempt to fix intermittent failures in Loop's Marionette unit tests by extending the timeout. r=mikedeboer, a=test-only

<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/.  -->
<html>
<head>
  <meta charset="utf-8">
  <title>Loop shared mocha tests</title>
  <link rel="stylesheet" media="all" href="vendor/mocha-2.0.1.css">
</head>
<body>
  <div id="mocha">
    <p><a href="../">Index</a></p>
  </div>
  <div id="messages"></div>
  <div id="fixtures"></div>
  <script>
    var uncaughtError;
    window.addEventListener("error", function(error) {
      uncaughtError = error;
    });
  </script>

  <!-- libs -->
  <script src="../../content/shared/libs/react-0.12.2.js"></script>
  <script src="../../content/shared/libs/jquery-2.1.0.js"></script>
  <script src="../../content/shared/libs/lodash-2.4.1.js"></script>
  <script src="../../content/shared/libs/backbone-1.1.2.js"></script>
  <script src="../../standalone/content/libs/l10n-gaia-02ca67948fe8.js"></script>

  <!-- test dependencies -->
  <script src="vendor/mocha-2.0.1.js"></script>
  <script src="vendor/chai-1.9.0.js"></script>
  <script src="vendor/sinon-1.12.2.js"></script>
  <script>
    /*global chai, mocha */
    chai.Assertion.includeStack = true;
    mocha.setup({ui: 'bdd', timeout: 10000});
  </script>

  <!-- App scripts -->
  <script src="../../content/shared/js/utils.js"></script>
  <script src="../../content/shared/js/models.js"></script>
  <script src="../../content/shared/js/mixins.js"></script>
  <script src="../../content/shared/js/websocket.js"></script>
  <script src="../../content/shared/js/feedbackApiClient.js"></script>
  <script src="../../content/shared/js/validate.js"></script>
  <script src="../../content/shared/js/actions.js"></script>
  <script src="../../content/shared/js/dispatcher.js"></script>
  <script src="../../content/shared/js/otSdkDriver.js"></script>
  <script src="../../content/shared/js/store.js"></script>
  <script src="../../content/shared/js/roomStates.js"></script>
  <script src="../../content/shared/js/fxOSActiveRoomStore.js"></script>
  <script src="../../content/shared/js/activeRoomStore.js"></script>
  <script src="../../content/shared/js/roomStore.js"></script>
  <script src="../../content/shared/js/conversationStore.js"></script>
  <script src="../../content/shared/js/feedbackStore.js"></script>
  <script src="../../content/shared/js/views.js"></script>
  <script src="../../content/shared/js/feedbackViews.js"></script>

  <!-- Test scripts -->
  <script src="models_test.js"></script>
  <script src="mixins_test.js"></script>
  <script src="utils_test.js"></script>
  <script src="views_test.js"></script>
  <script src="websocket_test.js"></script>
  <script src="feedbackApiClient_test.js"></script>
  <script src="feedbackViews_test.js"></script>
  <script src="validate_test.js"></script>
  <script src="dispatcher_test.js"></script>
  <script src="activeRoomStore_test.js"></script>
  <script src="fxOSActiveRoomStore_test.js"></script>
  <script src="conversationStore_test.js"></script>
  <script src="feedbackStore_test.js"></script>
  <script src="otSdkDriver_test.js"></script>
  <script src="store_test.js"></script>
  <script src="roomStore_test.js"></script>
  <script>
    describe("Uncaught Error Check", function() {
      it("should load the tests without errors", function() {
        expect(uncaughtError && uncaughtError.message).to.be.undefined;
      });
    });

    mocha.run(function () {
      $("#mocha").append("<p id='complete'>Complete.</p>");
    });
  </script>
</body>
</html>