Scott Nonnenberg
01918049b4
Keep last seen indicator around for five seconds
...
Helps calm the user experience a little more, makes it easier to
understand what's happening when messages are coming in quickly.
FREEBIE
2017-05-25 16:41:21 -07:00
Scott Nonnenberg
be981d6f48
Update manual test script after changes to last seen indicator
...
FREEBIE
2017-05-23 11:08:23 -07:00
lilia
16f3717824
Move refresh prekeys out of SignalProtocolStore
...
Use an event/listener instead
// FREEBIE
2017-05-23 11:08:23 -07:00
lilia
017bb56cca
Fix some corner casese with last seen indicator
...
* Remove increment behavior
* Dismiss when new messages arrive but the window is focused
* Update the indicator when window becomes focused.
// FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
ae7044fd30
Add recursive fetch scenario to manual test script
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
533ec52d0c
test/manual.txt: add scenarios for new scroll down button
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
4c7bfbe9ff
Scroll down button: when scrolled up, or new non-visible message
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
13322c7071
test/fixtures.js: Cleanup - data at top, images/setup at bottom
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
86c866738f
Introduce unread message to fixtures, further interactivity fixes
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
318162e74a
LastSeenIndicatorView: programmatic tests, tweak to manual tests
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
1608acf449
Add new test/manual.txt with scenarios for last-seen, scrolling
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
33cdc6ae71
test/index.html: Comments to help in turning off code coverage
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
0a5960e091
Restore interactivity to InboxViews hosted on test page
...
FREEBIE
2017-05-23 11:08:23 -07:00
Scott Nonnenberg
3cfac58d78
Eliminate all console errors during test run
...
FREEBIE
2017-05-23 11:08:23 -07:00
lilia
dc680126df
Clean up key change listener tests
...
camelCase variables
// FREEBIE
2017-05-12 15:52:06 -07:00
lilia
534ba3a62f
Remove unneeded promise wrapper
...
// FREEBIE
2017-05-12 15:52:06 -07:00
Scott Nonnenberg
0496518af4
Bulletproof getCountOfAllMatches against non-global regex input
...
FREEBIE
2017-05-10 15:51:39 -07:00
Scott Nonnenberg
423a0fef67
Jumbomoji support matching Android support
...
FREEBIE
2017-05-10 15:51:39 -07:00
lilia
aed5735620
Improve keychange notice reliability/perf
...
Bind a single listener to keychange events from the storage interface,
which then looks up relevant conversations and adds notices to them,
with tests.
Previously we would need to instantiate a conversation model in order to
start listening to its key change events. In practice this usually
happens at startup but we shouldn't rely on it, and it incurs higher
overhead since it creates a different listener for each conversation.
// FREEBIE
2017-05-09 15:41:41 -07:00
Scott Nonnenberg
731fcb8ecb
Add test verifying that AttachmentView shows file size
...
FREEBIE
2017-05-09 15:14:20 -07:00
lilia
40af226a4a
Move Whisper.events out of views and tests
2017-04-21 13:21:18 -07:00
lilia
6c7e1aa283
Update tests
2017-04-18 16:27:50 -07:00
lilia
d0448ec778
Fix tests
...
// FREEBIE
2017-04-13 13:15:42 -07:00
Sam Vevang
ed4991974b
set up a new view for displaying the network status
...
// FREEBIE
2017-04-08 00:10:56 -07:00
Blake Griffith
1e498294e0
Add attachment_views_test.js tests
2017-02-06 21:23:35 -08:00
Ikarulus
53cd3af78b
Added a dark theme
...
I added a dark theme in order to solve #328 .
This may fix #328 at least partially.
2016-12-02 00:41:42 +01:00
lilia
224afdd063
Fix tests
2016-10-07 19:39:50 +09:00
2-4601
669338c717
i18n 'Theme'
...
// FREEBIE
2016-10-07 19:27:05 +09:00
lilia
1fa722624e
Fix tests
2016-09-23 20:15:47 -07:00
lilia
b0c59233f3
Add test fixtures
...
Test page loads fixtures and renders the inbox view. This may be useful
for smoke testing style changes or generating screenshots with
pseudo-realistic data.
Includes a couple small changes to get rendering working outside the
app.
2016-09-23 19:51:42 -07:00
lilia
7e0df07e88
Fix tests
...
// FREEBIE
2016-09-01 13:47:50 -07:00
lilia
67c7a06c28
Use momentjs for timestamp localization
...
Let momentjs handle proper pluralization of relative times. This comes
at the sacrifice of displaying 'minutes' in the conversation list
timestamp rather than 'min'. Note that we don't use moment's fromNow
instance method so as to preserve the rounding logic that matches the
Android client.
// FREEBIE
2016-08-11 12:22:32 -07:00
lilia
f8e176fd40
Dedupe methods
...
Define textsecure.crypto in terms of libsignal.crypto.
// FREEBIE
2016-05-18 13:15:57 -07:00
lilia
148bd32671
Update libsignal-protocol v0.10.0
...
* Changes policy for old session deletion
* Renames putIdentityKey to saveIdentity
* Remove device messages
// FREEBIE
2016-05-18 11:11:11 -07:00
2-4601
60fe1e2cea
i18n 'Received message with unknown identity key'
...
// FREEBIE
2016-05-05 12:54:14 -07:00
2-4601
52992a8f12
i18n 'Secure session ended'
...
// FREEBIE
2016-05-05 12:54:14 -07:00
lilia
6589ec544a
Unnest before statements
...
// FREEBIE
2016-05-04 00:31:32 -07:00
lilia
348ee0b3e7
More descriptive tests
...
// FREEBIE
2016-05-04 00:30:42 -07:00
lilia
f173104c82
Tests for isTrustedIdentity
...
// FREEBIE
2016-05-04 00:25:01 -07:00
lilia
1d60dc38fb
Rename axolotl storage
...
// FREEBIE
2016-04-22 13:43:30 -07:00
lilia
b1d370755a
Rename AxolotlStore
...
// FREEBIE
2016-04-21 18:36:17 -07:00
lilia
1fe5d63015
Update protocol libs
...
Rename storage functions
// FREEBIE
2016-04-21 18:36:16 -07:00
lilia
7b29a567b5
More consistent timestamps
...
* Apply the same rounding to in message bubbles and conversation list.
Also make them consistent with Android's relative times. Fixes #682
* Show full timestamps when hovering on relative time
* Compute timestamp update delays more precisely:
Set timestamps to self-update as soon as they are able to change
rather than a fixed time since the last update.
* Refactor for customizable/localizable relative times
* Update timestamp tests
* Log timestamp update intervals to help debug #460
2016-04-21 12:06:39 -07:00
Blake Griffith
39091fca80
Add tests for message.getContact
...
FREEBIE
2016-04-07 16:30:14 -07:00
Blake Griffith
e07e3a53c9
Test message.*ImageUrl methods.
...
FREEBIE
2016-04-07 16:30:14 -07:00
lilia
9aa429e18a
Add frontend support for expiring releases
...
When a release expires, it gets a persistent banner notification to
upgrade, and an ephemeral toast warning when trying to send a message.
// FREEBIE
2016-04-03 21:11:50 -07:00
lilia
37fb2580bc
Fix tests
...
// FREEBIE
2016-03-09 16:17:17 -08:00
lilia
cc0b8e835a
Don't show left groups in list of all contacts
...
// FREEBIE
2016-02-22 17:11:16 -08:00
lilia
ef9559d844
Add tests for filtering left groups from search
...
// FREEBIE
2016-02-22 17:11:16 -08:00
lilia
df6c9cf462
Rebuild test.js
...
Needs reconcatenation after changing _test.js
// FREEBIE
2016-02-18 15:23:39 -08:00
lilia
173e037fa6
Fix minor style errors
...
And keep it that way, by making jscs config more opinionated.
// FREEBIE
2016-02-18 13:45:22 -08:00
lilia
b09cb228f7
Disallow trailing whitespace
...
// FREEBIE
2016-02-18 12:22:44 -08:00
lilia
7c17c5fa54
Update chai
...
// FREEBIE
2016-02-01 15:54:23 -08:00
lilia
26df196aba
Update chai
...
Level up Chai! New ability unlocked: assert.isBelow(val, limit)
// FREEBIE
2016-01-27 12:26:59 -08:00
lilia
080c233a93
Add timestamp update interval test
...
Break out delay computation into its own function and add tests,
including a regression test for #646 .
// FREEBIE
2016-01-27 12:24:50 -08:00
Lorenz Hübschle-Schneider
e876d8f6ed
Display relative timestamps in conversation list
...
This mimicks Signal-Android's relative timestamps.
Previously, only the date was displayed.
Fixes #284
2016-01-26 10:54:40 -08:00
lilia
239ec8e318
Fix test
...
// FREEBIE
2015-12-21 17:43:32 -08:00
David Baldwynn
e24fa69b04
Added test case for unsupported type
2015-12-21 00:19:53 -08:00
lilia
0e0994832e
Fix message view tests
...
// FREEBIE
2015-12-09 18:58:52 -08:00
lilia
11cedcce6e
Add model-level search tests
...
// FREEBIE
2015-12-09 18:58:52 -08:00
lilia
a258f1a66b
Refactor number parsing and validation
...
Refactor libphonenumber.validateNumber into libphonenumber.parseNumber,
which encapsulates the try-catch pattern used in number parsing and
returns an object of info about the input number rather tha throwing
since we expect to get some invalid number inputs the user is typing.
In the conversation model,
* Separate phone number validation from search token updating.
* Perform token update before save if the number was valid.
* Stop storing unneeded number variants as conversation properties.
// FREEBIE
2015-12-09 18:58:51 -08:00
lilia
3d98b54027
Create contact from number with common punctuation
...
The 'Create new contact' option should now appear for numbers including
parens and other common punctuation.
// FREEBIE
2015-12-09 18:58:51 -08:00
lilia
0b95606eff
Display nicely formatted phone numbers
...
In conversation headers and as titles for contacts with no name. Updated
tests accordingly.
// FREEBIE
2015-12-09 18:58:50 -08:00
lilia
717108d17f
Add regression test for #270
...
// FREEBIE
2015-11-08 11:01:39 -08:00
lilia
038e263023
Fix the build
...
1. Update chrome version because v40 fails to clear the session store
2. Add message view to test page and fix bad reference to chrome
3. Update the message view template in tests with new timestmap markup
// FREEBIE
2015-11-08 10:35:24 -08:00
lilia
80d32103d1
Clear session store when re-registering
...
When we re-register, our deviceId might change, which makes our sessions
are no longer valid since the recipient will see us as a new device.
Fixes #388
2015-11-04 13:52:47 -08:00
lilia
69bbaac3b9
Fix conversation model test
...
// FREEBIE
2015-10-02 15:13:13 -07:00
lilia
87ce3241c8
Remove script-tag for nonexistant test
...
// FREEBIE
2015-09-17 15:25:13 -07:00
lilia
78d7296f84
Fix tests
...
// FREEBIE
2015-09-17 11:40:42 -07:00
lilia
f764445c86
Remove erroneous license file and headers
...
We only use GPLV3 around here.
// FREEBIE
2015-09-07 14:58:42 -07:00
lilia
17e515f886
Add identity key conflict tests
2015-07-22 12:48:08 -07:00
lilia
9a4a91b5b5
Fix avatar test
2015-06-19 12:03:37 -07:00
lilia
a2abfe38a4
Fix tests
2015-05-26 13:43:54 -07:00
lilia
029c9754f0
Fix tests
2015-05-15 11:39:23 -07:00
lilia
915612114b
Remove general get/put/remove methods from AxolotlStore
2015-05-06 18:14:32 -07:00
lilia
d0e262d7cb
AxolotlStore stores groups in indexeddb
2015-05-06 17:49:31 -07:00
lilia
f413f03a6b
Add getDeviceIds to axolotlstore
...
And add tests for getDeviceIds and removeAllSessions
2015-05-05 17:44:58 -07:00
lilia
96eafc7750
Integrate libaxolotl async storage changes
...
* Session records are now opaque strings, so treat them that way:
- no more cross checking identity key and session records
- Move hasOpenSession to axolotl wrapper
- Remote registration ids must be fetched async'ly via protocol wrapper
* Implement async AxolotlStore using textsecure.storage
* Add some db stores and move prekeys and signed keys to indexeddb
* Add storage tests
* Rename identityKey storage key from libaxolotl25519KeyidentityKey to
simply identityKey, since it's no longer hardcoded in libaxolotl
* Rework registration and key-generation, keeping logic in libtextsecure
and rendering in options.js.
* Remove key_worker since workers are handled at the libaxolotl level
now
2015-05-05 17:44:55 -07:00
Tara Vancil
074bb66a4c
Add tests for messages model.
...
Closes #222
2015-04-22 13:45:32 -07:00
lilia
5a46300581
Reorder database.js include in test
2015-04-15 18:11:06 -07:00
lilia
026f110d36
Delete the database once, before tests run
2015-04-15 18:02:44 -07:00
Tara Vancil
d65e0e5eda
Add tests for message and conversation models
...
Closes #218
2015-03-25 13:45:52 -07:00
lilia
c526dbda5f
Set up production build task
...
`grunt copy`
Closes #191
2015-03-19 18:34:56 -07:00
lilia
254131488e
Render emoji in conversation and inbox views.
2015-03-10 18:15:31 -07:00
lilia
1321a90667
Rename Whisper.View#attributes
...
Avoid colliding with Backbone.View attributes, which is a list of attrs
to set on the html element for a view.
2015-03-06 17:05:36 -08:00
lilia
dc1b09f59d
Auto-link urls in message bodies
...
And watch out for xss.
Closes #187
2015-03-06 17:01:04 -08:00
lilia
fc6c8c0f3e
Fix tests
2015-03-05 16:51:53 -08:00
lilia
1bb480f6ea
DRY up a common view pattern
...
Define a Whisper.View base class that automatically parses and renders
templates and attributes defined by the subclass. This saves us a good
number of lines of code as well as some marginal memory overhead, since
we are no longer saving per-instance copies of template strings.
2015-03-05 15:36:35 -08:00
lilia
4cefd17ac6
Remove unused view
2015-03-03 10:55:04 -08:00
lilia
e96aa2f06e
Remove obsolete script tags
...
For the recently deleted notifications.js
2015-02-23 11:57:57 -08:00
lilia
90140556e4
Fix tests
2015-02-12 13:21:17 -08:00
lilia
711e211e20
Remove bootstrap tagsinput
2015-02-12 13:21:16 -08:00
lilia
d107c3b839
Fix tests
2015-02-11 17:38:02 -08:00
lilia
55802f2087
Remove obsolete note on test page
...
Actually this page totally works from file:// now.
2015-02-11 17:37:59 -08:00
Matt Corallo
e7f3e52b6c
Remove NaCL!
2015-01-14 11:39:36 -10:00
Matt Corallo
5785f4033c
Compile curve25519/webcrypto into libtextsecure.js
2015-01-14 09:35:57 -10:00
Matt Corallo
899d756469
Split tests between libtextsecure and main
2015-01-14 09:35:57 -10:00
Matt Corallo
8ad1a38b5b
Move js files around for libtextsecure split
2015-01-14 09:35:57 -10:00
Matt Corallo
444b765dfc
Remove unused function in _test.js
2015-01-14 09:35:57 -10:00
Matt Corallo
fb03879d02
Re-add v3 testvectors with fixed sauce
2015-01-12 23:20:06 -10:00