2014-03-06 18:12:24 +00:00
|
|
|
TextSecure Chromium Implementation
|
|
|
|
==================================
|
|
|
|
|
|
|
|
This is very early stuff and exists primarily to get the crypto in place.
|
|
|
|
Note that the code is currently quite messy (its all in one file!), but it
|
|
|
|
needs to work first, then it can be heavily cleaned up later.
|
2014-05-24 15:22:14 +00:00
|
|
|
|
2014-05-24 16:10:29 +00:00
|
|
|
Getting Started with Development
|
|
|
|
================================
|
2014-05-24 15:22:14 +00:00
|
|
|
|
2014-05-24 15:24:15 +00:00
|
|
|
* Clone the repo
|
|
|
|
* Open Chrome
|
|
|
|
* Go to chrome://extensions/
|
|
|
|
* Enable developer mode (checkbox on the top right)
|
|
|
|
* Click "Load unpacked extension..."
|
|
|
|
* Point to the repo's directory
|
2014-05-24 16:10:29 +00:00
|
|
|
|
2014-07-26 18:29:19 +00:00
|
|
|
Tests
|
|
|
|
=====
|
|
|
|
Please write tests! Our testing framework is mocha and our assertion library is
|
|
|
|
chai:
|
|
|
|
|
|
|
|
* http://visionmedia.github.io/mocha/
|
|
|
|
* http://chaijs.com/api/assert/
|
|
|
|
|
2014-05-24 16:10:29 +00:00
|
|
|
Tips/Tricks
|
|
|
|
===========
|
|
|
|
|
2014-06-10 00:11:46 +00:00
|
|
|
* For Dev purposes, the test server always uses code 111111
|
2014-07-26 12:13:40 +00:00
|
|
|
* Loading the `test.html` page may read, write or clear localStorage. To avoid
|
2014-07-26 18:29:19 +00:00
|
|
|
having to choose between running tests and preserving your existing messages,
|
2014-07-26 12:13:40 +00:00
|
|
|
keys, and other extension data, much of the test suite can be run by starting
|
|
|
|
a local webserver in the repository root, e.g. `python -m SimpleHTTPServer`.
|
|
|
|
You can then access the test page at `http://0.0.0.0:8000`.
|