mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
73 lines
2.2 KiB
HTML
73 lines
2.2 KiB
HTML
<!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-1.17.1.css">
|
|
</head>
|
|
<body>
|
|
<div id="mocha">
|
|
<p><a href="../">Index</a></p>
|
|
</div>
|
|
<div id="messages"></div>
|
|
<div id="fixtures"></div>
|
|
<!-- libs -->
|
|
<script>
|
|
// Components won't load in unprivileged space, faking this one.
|
|
var FirefoxCom = {
|
|
requestSync: function(action) {
|
|
if (action === 'getLocale')
|
|
return "en-US";
|
|
|
|
if (action === 'getStrings')
|
|
return '{}';
|
|
},
|
|
getLocale: function() {
|
|
return "en-US";
|
|
},
|
|
getStrings: function() {
|
|
return [];
|
|
}
|
|
};
|
|
window.Components = {fake: true, utils: {import: function(){}}};
|
|
window.Services = {fake: true, prefs: {getCharPref: function() {
|
|
return "http://example.com";
|
|
}}};
|
|
</script>
|
|
<script src="../../content/libs/l10n.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>
|
|
|
|
<!-- test dependencies -->
|
|
<script src="../shared/vendor/mocha-1.17.1.js"></script>
|
|
<script src="../shared/vendor/chai-1.9.0.js"></script>
|
|
<script src="../shared/vendor/sinon-1.9.0.js"></script>
|
|
<script>
|
|
/*global chai,mocha */
|
|
chai.Assertion.includeStack = true;
|
|
mocha.setup('bdd');
|
|
</script>
|
|
|
|
<!-- App scripts -->
|
|
<script src="../../content/shared/js/client.js"></script>
|
|
<script src="../../content/shared/js/models.js"></script>
|
|
<script src="../../content/shared/js/router.js"></script>
|
|
<script src="../../content/shared/js/views.js"></script>
|
|
<script src="../../content/js/conversation.js"></script>
|
|
<script src="../../content/js/panel.js"></script>
|
|
|
|
<!-- Test scripts -->
|
|
<script src="conversation_test.js"></script>
|
|
<script src="panel_test.js"></script>
|
|
<script>
|
|
mocha.run(function () {
|
|
$("#mocha").append("<p id='complete'>Complete.</p>");
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|