2014-05-29 13:20:11 -07:00
|
|
|
<!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>
|
2014-11-07 13:59:09 -08:00
|
|
|
<link rel="stylesheet" media="all" href="../shared/vendor/mocha-2.0.1.css">
|
2014-05-29 13:20:11 -07:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="mocha">
|
2014-05-29 13:20:11 -07:00
|
|
|
<p><a href="../">Index</a></p>
|
2014-05-29 13:20:11 -07:00
|
|
|
<p><a href="../shared/">Shared Tests</a></p>
|
|
|
|
</div>
|
|
|
|
<div id="messages"></div>
|
|
|
|
<div id="fixtures"></div>
|
2014-12-01 14:37:06 -08:00
|
|
|
<script>
|
|
|
|
var uncaughtError;
|
|
|
|
window.addEventListener("error", function(error) {
|
|
|
|
uncaughtError = error;
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2014-05-29 13:20:11 -07:00
|
|
|
<!-- libs -->
|
2015-01-06 04:07:26 -08:00
|
|
|
<script src="../../content/shared/libs/react-0.12.2.js"></script>
|
2014-05-29 13:20:11 -07:00
|
|
|
<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>
|
2014-09-17 11:23:31 -07:00
|
|
|
<script src="../../standalone/content/libs/l10n-gaia-02ca67948fe8.js"></script>
|
2014-05-29 13:20:11 -07:00
|
|
|
<!-- test dependencies -->
|
2014-11-07 13:59:09 -08:00
|
|
|
<script src="../shared/vendor/mocha-2.0.1.js"></script>
|
2014-05-29 13:20:11 -07:00
|
|
|
<script src="../shared/vendor/chai-1.9.0.js"></script>
|
2014-12-15 12:34:30 -08:00
|
|
|
<script src="../shared/vendor/sinon-1.12.2.js"></script>
|
2014-05-29 13:20:11 -07:00
|
|
|
<script src="../shared/sdk_mock.js"></script>
|
2014-05-29 13:20:11 -07:00
|
|
|
<script>
|
|
|
|
chai.Assertion.includeStack = true;
|
|
|
|
mocha.setup('bdd');
|
|
|
|
</script>
|
|
|
|
<!-- App scripts -->
|
2014-08-01 16:36:39 -07:00
|
|
|
<script src="../../content/shared/js/utils.js"></script>
|
2014-05-29 13:20:11 -07:00
|
|
|
<script src="../../content/shared/js/models.js"></script>
|
2014-09-11 12:54:48 -07:00
|
|
|
<script src="../../content/shared/js/mixins.js"></script>
|
2014-08-15 14:54:29 -07:00
|
|
|
<script src="../../content/shared/js/websocket.js"></script>
|
2014-09-22 05:40:57 -07:00
|
|
|
<script src="../../content/shared/js/feedbackApiClient.js"></script>
|
2014-11-05 06:59:40 -08:00
|
|
|
<script src="../../content/shared/js/actions.js"></script>
|
|
|
|
<script src="../../content/shared/js/validate.js"></script>
|
|
|
|
<script src="../../content/shared/js/dispatcher.js"></script>
|
2014-11-19 06:59:08 -08:00
|
|
|
<script src="../../content/shared/js/store.js"></script>
|
2014-11-23 11:59:03 -08:00
|
|
|
<script src="../../content/shared/js/roomStates.js"></script>
|
|
|
|
<script src="../../content/shared/js/fxOSActiveRoomStore.js"></script>
|
2014-11-06 12:53:49 -08:00
|
|
|
<script src="../../content/shared/js/activeRoomStore.js"></script>
|
2014-11-24 08:02:48 -08:00
|
|
|
<script src="../../content/shared/js/feedbackStore.js"></script>
|
2015-02-02 13:53:19 -08:00
|
|
|
<script src="../../content/shared/js/views.js"></script>
|
2014-11-24 08:02:48 -08:00
|
|
|
<script src="../../content/shared/js/feedbackViews.js"></script>
|
2014-11-11 06:48:56 -08:00
|
|
|
<script src="../../content/shared/js/otSdkDriver.js"></script>
|
2014-11-03 14:48:16 -08:00
|
|
|
<script src="../../standalone/content/js/multiplexGum.js"></script>
|
2014-11-05 06:59:40 -08:00
|
|
|
<script src="../../standalone/content/js/standaloneAppStore.js"></script>
|
2014-07-03 01:23:38 -07:00
|
|
|
<script src="../../standalone/content/js/standaloneClient.js"></script>
|
2014-11-07 08:28:13 -08:00
|
|
|
<script src="../../standalone/content/js/standaloneMozLoop.js"></script>
|
2014-11-23 11:59:03 -08:00
|
|
|
<script src="../../standalone/content/js/fxOSMarketplace.js"></script>
|
2014-11-05 06:59:40 -08:00
|
|
|
<script src="../../standalone/content/js/standaloneRoomViews.js"></script>
|
2014-05-29 13:25:39 -07:00
|
|
|
<script src="../../standalone/content/js/webapp.js"></script>
|
2014-11-07 08:28:13 -08:00
|
|
|
<!-- Test scripts -->
|
2014-07-03 01:23:38 -07:00
|
|
|
<script src="standalone_client_test.js"></script>
|
2014-11-05 06:59:40 -08:00
|
|
|
<script src="standaloneAppStore_test.js"></script>
|
2014-11-07 08:28:13 -08:00
|
|
|
<script src="standaloneMozLoop_test.js"></script>
|
2014-11-12 07:20:54 -08:00
|
|
|
<script src="standaloneRoomViews_test.js"></script>
|
2014-05-29 13:20:11 -07:00
|
|
|
<script src="webapp_test.js"></script>
|
2014-11-03 14:48:16 -08:00
|
|
|
<script src="multiplexGum_test.js"></script>
|
2014-05-29 13:20:11 -07:00
|
|
|
<script>
|
2014-12-01 14:37:06 -08:00
|
|
|
describe("Uncaught Error Check", function() {
|
|
|
|
it("should load the tests without errors", function() {
|
|
|
|
expect(uncaughtError && uncaughtError.message).to.be.undefined;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2014-05-29 13:20:11 -07:00
|
|
|
mocha.run(function () {
|
2014-05-29 13:25:39 -07:00
|
|
|
$("#mocha").append("<p id='complete'>Complete.</p>");
|
2014-05-29 13:20:11 -07:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|