browser/components/loop/test/standalone/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 mocha tests</title>
  <link rel="stylesheet" media="all" href="../shared/vendor/mocha-2.0.1.css">
</head>
<body>
  <div id="mocha">
    <p><a href="../">Index</a></p>
    <p><a href="../shared/">Shared Tests</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="../shared/vendor/mocha-2.0.1.js"></script>
  <script src="../shared/vendor/chai-1.9.0.js"></script>
  <script src="../shared/vendor/sinon-1.12.2.js"></script>
  <script src="../shared/sdk_mock.js"></script>
  <script>
    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/actions.js"></script>
  <script src="../../content/shared/js/validate.js"></script>
  <script src="../../content/shared/js/dispatcher.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/feedbackStore.js"></script>
  <script src="../../content/shared/js/views.js"></script>
  <script src="../../content/shared/js/feedbackViews.js"></script>
  <script src="../../content/shared/js/otSdkDriver.js"></script>
  <script src="../../standalone/content/js/multiplexGum.js"></script>
  <script src="../../standalone/content/js/standaloneAppStore.js"></script>
  <script src="../../standalone/content/js/standaloneClient.js"></script>
  <script src="../../standalone/content/js/standaloneMozLoop.js"></script>
  <script src="../../standalone/content/js/fxOSMarketplace.js"></script>
  <script src="../../standalone/content/js/standaloneRoomViews.js"></script>
  <script src="../../standalone/content/js/webapp.js"></script>
  <!-- Test scripts -->
  <script src="standalone_client_test.js"></script>
  <script src="standaloneAppStore_test.js"></script>
  <script src="standaloneMozLoop_test.js"></script>
  <script src="standaloneRoomViews_test.js"></script>
  <script src="webapp_test.js"></script>
  <script src="multiplexGum_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>