2014-09-01 20:52:58 +02:00
|
|
|
<!--This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<title>TextSecure test runner</title>
|
2014-10-31 00:53:08 +01:00
|
|
|
<link rel="stylesheet" href="../components/mocha/mocha.css" />
|
2014-09-01 20:52:58 +02:00
|
|
|
</head>
|
2014-10-29 06:53:26 +01:00
|
|
|
<body data-name="curve25519" data-tools="pnacl" data-configs="Debug Release" data-path="../nacl/pnacl/{config}">
|
2014-10-29 21:46:09 +01:00
|
|
|
<h2>Run this out of the chrome-plugin:// namespace (and expect plugin state to be cleared/corrupted), not file://</h2>
|
|
|
|
|
2014-09-01 20:52:58 +02:00
|
|
|
<div id="listener"></div>
|
|
|
|
<div id="log"></div>
|
|
|
|
|
|
|
|
<div id="mocha">
|
|
|
|
</div>
|
|
|
|
<div id="tests">
|
|
|
|
</div>
|
|
|
|
<script type='text/x-tmpl-mustache' id='conversation'>
|
2014-10-29 21:46:09 +01:00
|
|
|
<div class='discussion-container'></div>
|
2014-09-01 20:52:58 +02:00
|
|
|
<div class='send-message-area'>
|
|
|
|
<div class='message-composer'>
|
|
|
|
<form class='send'>
|
|
|
|
<input class='send-message' rows='6' type='textarea'>
|
2014-10-29 21:46:09 +01:00
|
|
|
<div class='attachments'>
|
|
|
|
<input type='file' name='files[]' multiple class='file-input'>
|
|
|
|
</div>
|
2014-09-01 20:52:58 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class='extension-details'>
|
|
|
|
<ul>
|
|
|
|
<li>Signal for Chrome</li>
|
|
|
|
<li><a href="https://github.com/whispersystems">Version 0.1</a></li>
|
|
|
|
<li>by <a href="http://whispersystems.org">Open Whisper Systems</a></li>
|
|
|
|
<li><a href="http://support.whispersystems.org/">Need Help?</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
<script type='text/x-tmpl-mustache' id='message'>
|
2014-10-29 21:46:09 +01:00
|
|
|
<div class='sender'>{{ sender }}</div>
|
|
|
|
<img class='avatar' src='{{ contact_avatar }}'>
|
2014-09-01 20:52:58 +02:00
|
|
|
<div class='bubble bubble_context {{ bubble_class }}'>
|
2014-10-29 21:46:09 +01:00
|
|
|
<ul class='volley'>
|
|
|
|
<li class='message'>
|
|
|
|
{{ message }}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{{#attachments}}
|
|
|
|
<img src={{.}}>
|
|
|
|
{{/attachments}}
|
2014-09-01 20:52:58 +02:00
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
<script type='text/x-tmpl-mustache' id='contact'>
|
2014-10-29 21:46:09 +01:00
|
|
|
<div class='avatar' style='background-image: url({{ contact_avatar }});'></div>
|
2014-09-01 20:52:58 +02:00
|
|
|
<div class='contact-details'>
|
|
|
|
<h3>
|
|
|
|
{{ contact_name }}
|
|
|
|
</h3>
|
|
|
|
<p class='last-message'>
|
|
|
|
{{ last_message }}
|
|
|
|
</p>
|
|
|
|
<span class='last-timestamp'>
|
|
|
|
{{ last_message_timestamp }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
<script type='text/x-tmpl-mustache' id='new-message-form'>
|
|
|
|
<form class='send message'>
|
2014-10-29 21:46:09 +01:00
|
|
|
<input type='text' name='number' class='number' placeholder='Phone number'>
|
2014-09-01 20:52:58 +02:00
|
|
|
<div class='send-message-area'>
|
|
|
|
<div class='message-composer'>
|
|
|
|
<input name='message' class='send-message' rows='6' type='textarea'>
|
|
|
|
<div class='attachments'> Add Files </div>
|
|
|
|
<input type='submit'>
|
|
|
|
</div>
|
|
|
|
<div class='extension-details'>
|
|
|
|
<ul>
|
|
|
|
<li>Signal for Chrome</li>
|
|
|
|
<li><a href="https://github.com/whispersystems">Version 0.1</a></li>
|
|
|
|
<li>by <a href="http://whispersystems.org">Open Whisper Systems</a></li>
|
|
|
|
<li><a href="http://support.whispersystems.org/">Need Help?</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</script>
|
|
|
|
<script type='text/x-tmpl-mustache' id='new-group-form'>
|
|
|
|
<form class='send group'>
|
2014-10-29 21:46:09 +01:00
|
|
|
<div><input name='name' class='name' placeholder='Group Name'></div>
|
|
|
|
<div><input name='numbers' class='numbers' data-role=tagsinput></div>
|
2014-09-01 20:52:58 +02:00
|
|
|
<div class='send-message-area'>
|
|
|
|
<div class='message-composer'>
|
|
|
|
<input class='send-message' rows='6' type='textarea'>
|
|
|
|
<div class='attachments'> Add Files </div>
|
2014-10-29 21:46:09 +01:00
|
|
|
<input type='submit'>
|
2014-09-01 20:52:58 +02:00
|
|
|
</div>
|
|
|
|
<div class='extension-details'>
|
|
|
|
<ul>
|
|
|
|
<li>Signal for Chrome</li>
|
|
|
|
<li><a href="https://github.com/whispersystems">Version 0.1</a></li>
|
|
|
|
<li>by <a href="http://whispersystems.org">Open Whisper Systems</a></li>
|
|
|
|
<li><a href="http://support.whispersystems.org/">Need Help?</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</script>
|
|
|
|
|
2014-10-31 01:57:37 +01:00
|
|
|
<script type="text/javascript" src="test.js"></script>
|
2014-10-29 21:46:09 +01:00
|
|
|
<script type="text/javascript" src="blanket_mocha.js"></script>
|
|
|
|
|
2014-09-01 20:52:58 +02:00
|
|
|
<script type="text/javascript" src="../js-deps/nacl-common.js"></script>
|
|
|
|
<script type="text/javascript" src="../js-deps/CryptoJS.js"></script>
|
2014-10-31 00:53:08 +01:00
|
|
|
<script type="text/javascript" src="../js/components.js"></script>
|
2014-09-01 20:52:58 +02:00
|
|
|
|
2014-11-04 23:59:48 +01:00
|
|
|
<script type="text/javascript" src="../js/nativeclient.js"></script>
|
2014-10-29 21:46:09 +01:00
|
|
|
<script type="text/javascript" src="../js/protobufs.js" data-cover></script>
|
|
|
|
<script type="text/javascript" src="../js/helpers.js" data-cover></script>
|
2014-10-29 04:30:35 +01:00
|
|
|
<script type="text/javascript" src="../js/storage.js"></script>
|
|
|
|
<script type="text/javascript" src="../js/storage/devices.js"></script>
|
|
|
|
<script type="text/javascript" src="../js/storage/groups.js"></script>
|
2014-10-29 21:46:09 +01:00
|
|
|
<script type="text/javascript" src="../js/libphonenumber-util.js"></script>
|
2014-09-01 20:52:58 +02:00
|
|
|
<script type="text/javascript" src="../js/webcrypto.js"></script>
|
2014-11-04 23:59:48 +01:00
|
|
|
<script type="text/javascript" src="../js/crypto.js"></script>
|
|
|
|
<script type="text/javascript" src="../js/protocol.js" data-cover></script>
|
2014-09-01 20:52:58 +02:00
|
|
|
<script type="text/javascript" src="../js/models/messages.js"></script>
|
|
|
|
<script type="text/javascript" src="../js/models/threads.js"></script>
|
|
|
|
<script type="text/javascript" src="../js/api.js"></script>
|
2014-10-29 21:46:09 +01:00
|
|
|
<script type="text/javascript" src="../js/sendmessage.js" data-cover></script>
|
2014-09-01 20:52:58 +02:00
|
|
|
|
2014-10-29 21:46:09 +01:00
|
|
|
<script type="text/javascript" src="../js/chromium.js"></script>
|
2014-11-08 02:55:33 +01:00
|
|
|
<script type="text/javascript" src="../js/curve25519_compiled.js"></script>
|
2014-09-04 09:16:06 +02:00
|
|
|
|
2014-09-01 20:52:58 +02:00
|
|
|
<script type="text/javascript" src="../js/views/notifications.js"></script>
|
2014-09-04 09:16:06 +02:00
|
|
|
<script type="text/javascript" src="../js/views/list_view.js" data-cover></script>
|
|
|
|
<script type="text/javascript" src="../js/views/message_view.js" data-cover></script>
|
|
|
|
<script type="text/javascript" src="../js/views/message_list_view.js" data-cover></script>
|
|
|
|
<script type="text/javascript" src="../js/views/conversation_list_item_view.js" data-cover></script>
|
|
|
|
<script type="text/javascript" src="../js/views/conversation_list_view.js" data-cover></script>
|
|
|
|
<script type="text/javascript" src="../js/views/conversation_view.js" data-cover></script>
|
|
|
|
<script type="text/javascript" src="../js/views/new_conversation_view.js" data-cover></script>
|
|
|
|
<script type="text/javascript" src="../js/views/new_group_view.js" data-cover></script>
|
|
|
|
|
2014-10-29 21:46:09 +01:00
|
|
|
<script type="text/javascript" src="fake_api.js"></script>
|
|
|
|
<script type="text/javascript" src="testvectors.js"></script>
|
2014-11-06 23:54:31 +01:00
|
|
|
<script type="text/javascript" src="curve25519_test.js"></script>
|
2014-10-29 21:46:09 +01:00
|
|
|
<script type="text/javascript" src="crypto_test.js"></script>
|
2014-11-06 23:16:54 +01:00
|
|
|
<script type="text/javascript" src="protocol_test.js"></script>
|
2014-11-04 23:59:48 +01:00
|
|
|
<script type="text/javascript" src="nativeclient_test.js"></script>
|
Finish abstracting native client
Firstly, don't initialize textsecure.nativclient unless the browser
supports it. The mimetype-check trick is hewn from nacl-common.js.
Secondly, nativeclient crypto functions will all automatically wait for
the module to load before sending messages, so we needn't register any
onload callbacks outside nativeclient.js. (Previously, if you wanted to
do crypto with native client, you would have to register a call back and
wait for the module to load.) Now that the native client crypto is
encapsulated behind a nice interface, it can handle all that
onload-callback jazz internally: if the module isn't loaded when you
call a nativeclient function, return a promise that waits for the load
callback, and eventually resolves with the result of the requested
command. This removes the need for textsecure.registerOnLoadCallback.
Finally, although native client has its quirks, it's significantly
faster than the alternative (emscripten compiled js), so this commit
also lets the crypto backend use native client opportunistically, if
it's available, falling back to js if not, which should make us
compatible with older versions of chrome and chromium.
2014-11-09 02:26:20 +01:00
|
|
|
<script type="text/javascript" src="curve25519_compiled_test.js"></script>
|
2014-11-06 23:16:54 +01:00
|
|
|
<script type="text/javascript" src="helpers_test.js"></script>
|
2014-09-01 20:52:58 +02:00
|
|
|
<script type="text/javascript" src="views/message_view_test.js"></script>
|
2014-10-18 16:08:57 +02:00
|
|
|
<script type="text/javascript" src="views/list_view_test.js"></script>
|
|
|
|
<script type="text/javascript" src="views/threads_test.js"></script>
|
2014-09-01 20:52:58 +02:00
|
|
|
</body>
|
|
|
|
</html>
|