2022-05-27 22:12:01 +00:00
|
|
|
<!-- Copyright 2014-2022 Signal Messenger, LLC -->
|
2020-10-30 20:34:04 +00:00
|
|
|
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
|
|
|
|
|
2014-09-01 18:52:58 +00:00
|
|
|
<html>
|
2021-06-23 18:18:47 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>TextSecure test runner</title>
|
|
|
|
<link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
|
|
|
|
<link rel="stylesheet" href="../stylesheets/manifest.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="mocha"></div>
|
|
|
|
<div id="tests"></div>
|
|
|
|
|
|
|
|
<script type="text/x-tmpl-mustache" id="app-loading-screen">
|
|
|
|
<div class='module-title-bar-drag-area'></div>
|
|
|
|
|
|
|
|
<div class='content'>
|
|
|
|
<div class="module-splash-screen__logo module-img--150"></div>
|
|
|
|
<div class='container'>
|
|
|
|
<span class='dot'></span>
|
|
|
|
<span class='dot'></span>
|
|
|
|
<span class='dot'></span>
|
|
|
|
</div>
|
|
|
|
<div class='message'>{{ message }}</div>
|
2017-07-25 01:43:35 +00:00
|
|
|
</div>
|
2021-06-23 18:18:47 +00:00
|
|
|
</script>
|
2019-01-14 21:49:58 +00:00
|
|
|
|
2021-06-23 18:18:47 +00:00
|
|
|
<script type="text/x-tmpl-mustache" id="conversation">
|
2021-10-05 16:47:06 +00:00
|
|
|
<div id="ConversationView__template"></div>
|
2021-06-23 18:18:47 +00:00
|
|
|
</script>
|
2019-01-14 21:49:58 +00:00
|
|
|
|
2021-06-23 18:18:47 +00:00
|
|
|
<script type="text/x-tmpl-mustache" id="recorder">
|
2016-09-22 23:37:12 +00:00
|
|
|
<button class='finish'><span class='icon'></span></button>
|
|
|
|
<span class='time'>0:00</span>
|
|
|
|
<button class='close'><span class='icon'></span></button>
|
2021-06-23 18:18:47 +00:00
|
|
|
</script>
|
2019-01-14 21:49:58 +00:00
|
|
|
|
2021-06-23 18:18:47 +00:00
|
|
|
<script type="text/x-tmpl-mustache" id="file-size-modal">
|
2016-09-22 23:37:12 +00:00
|
|
|
{{ file-size-warning }}
|
|
|
|
({{ limit }}{{ units }})
|
2021-06-23 18:18:47 +00:00
|
|
|
</script>
|
2019-01-14 21:49:58 +00:00
|
|
|
|
2021-06-23 18:18:47 +00:00
|
|
|
<script type="text/x-tmpl-mustache" id="group-member-list">
|
|
|
|
<div class='container'>
|
|
|
|
{{ #summary }} <div class='summary'>{{ summary }}</div>{{ /summary }}
|
2016-09-22 23:37:12 +00:00
|
|
|
</div>
|
2021-06-23 18:18:47 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript" src="../js/components.js"></script>
|
|
|
|
<script
|
|
|
|
type="text/javascript"
|
2022-06-01 19:54:51 +00:00
|
|
|
src="../ts/backbone/backboneJquery.js"
|
|
|
|
></script>
|
|
|
|
<script
|
|
|
|
type="text/javascript"
|
|
|
|
src="../ts/backbone/reliable_trigger.js"
|
2021-06-23 18:18:47 +00:00
|
|
|
></script>
|
2021-12-09 08:06:04 +00:00
|
|
|
<script
|
|
|
|
type="text/javascript"
|
|
|
|
src="../node_modules/mocha/mocha.js"
|
|
|
|
></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
mocha.setup('bdd');
|
|
|
|
</script>
|
2021-06-23 18:18:47 +00:00
|
|
|
<script type="text/javascript" src="test.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2021-07-13 18:54:53 +00:00
|
|
|
window.Signal.conversationControllerStart();
|
2021-06-23 18:18:47 +00:00
|
|
|
|
2022-06-13 21:39:35 +00:00
|
|
|
window.testUtilities.prepareTests();
|
|
|
|
delete window.testUtilities.prepareTests;
|
2021-12-09 08:06:04 +00:00
|
|
|
|
|
|
|
!(function () {
|
|
|
|
const passed = [];
|
|
|
|
const failed = [];
|
|
|
|
|
|
|
|
class Reporter extends Mocha.reporters.HTML {
|
|
|
|
constructor(runner, options) {
|
|
|
|
super(runner, options);
|
|
|
|
|
|
|
|
runner.on('pass', test => passed.push(test.fullTitle()));
|
|
|
|
runner.on('fail', (test, error) => {
|
|
|
|
failed.push({
|
|
|
|
testName: test.fullTitle(),
|
|
|
|
error: error?.stack || String(error),
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2022-06-13 21:39:35 +00:00
|
|
|
runner.on('end', () =>
|
|
|
|
window.testUtilities.onComplete({ passed, failed })
|
|
|
|
);
|
2021-12-09 08:06:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mocha.reporter(Reporter);
|
2021-07-13 18:54:53 +00:00
|
|
|
|
2021-12-09 08:06:04 +00:00
|
|
|
mocha.run();
|
|
|
|
})();
|
2021-06-23 18:18:47 +00:00
|
|
|
</script>
|
|
|
|
</body>
|
2014-09-01 18:52:58 +00:00
|
|
|
</html>
|