JC Brand
f3373c44fd
Fixes #850 . .where
method doesn't match numbers.
2017-04-21 18:06:28 +02:00
JC Brand
d2eadbdce4
Use classList API
2017-04-06 23:21:52 +02:00
JC Brand
0c43e4b87c
Upgrade to Jasmine 2.5.3
2017-04-06 11:31:05 +02:00
Anshul Singhal
3dd6ff1751
Fixes the duplication bug in adding contact and adds test for the same
2017-03-08 15:33:43 +01:00
JC Brand
f8d9368163
MUC: only render and listen to 'scroll' event...
...
after the cached messages have been fetched.
2017-02-27 21:09:17 +00:00
JC Brand
51fc401a24
Fix failing tests due to new defaults.
2017-02-17 09:45:34 +00:00
JC Brand
fe6a9ca748
Merge converse-api and converse-core
...
Otherwise `require('converse-core')` can be called, exposing the inner converse
object.
2017-02-14 14:35:52 +00:00
JC Brand
b7b9711296
Rename the closured converse object to _converse
...
to indicate that it's private and to differentiate it from the outer "global"
converse object.
2017-02-02 18:34:13 +00:00
JC Brand
4dcb855562
Split API into public and private (plugin only) parts.
2017-02-02 18:30:59 +00:00
JC Brand
3494691286
Fix failing tests
...
after allowing chatting with pending/requesting contacts
2017-02-02 16:37:41 +01:00
JC Brand
081f075aa9
Add eslint with lodash checking and apply its suggestions
2017-02-01 14:02:18 +01:00
JC Brand
de07b6a529
No need for two AMD-load cycles.
2016-11-30 12:18:58 +00:00
JC Brand
a5f76abcf1
Updates #729 . Minimized chat boxes don't stay hidden
...
Bug got introduced during fix for #677
Eventually had to do a significant refactoring, to more consistently use the
`hidden` class instead of `display: None`. (relevant for #695 )
2016-11-22 17:42:58 +01:00
JC Brand
c3b2a913bb
Don't open the controlbox on requesting contacts.
...
Can get annoying very quickly
2016-11-22 17:41:57 +01:00
JC Brand
64b5755d10
Add a quick test for remembering of open tab.
2016-11-03 14:10:08 +00:00
JC Brand
a2f4acdcee
All tests suites now updated and isolated.
2016-11-03 13:59:05 +00:00
JC Brand
71381e2f22
Show requesting contacts when filtering by chat state.
...
Also add an initial test case for filtering by chat state.
2016-07-18 08:42:07 +00:00
JC Brand
9cfec0ba8c
Show requesting contacts at the top of the roster view.
2016-06-21 17:48:18 +00:00
JC Brand
d2ee62da71
Make sure that there is a valid connection when login API is called
...
In the process I had to refactor some methods which required the mock
connection of tests to be changed as well.
2016-04-13 15:11:50 +00:00
JC Brand
8e0f8f0a6d
Add the ability to filter contacts by chat state.
...
The roster filter is now also remembered across page loads.
2016-04-02 11:30:54 +00:00
JC Brand
da72be8f3e
Fix intermittent browser test failures
2016-03-14 14:04:36 +00:00
JC Brand
e835a25184
Add jshint checking and fix errors.
2015-10-25 17:55:18 +00:00
JC Brand
f399c5f681
Add more protocol tests.
...
* Unsubscribing
* Incoming subscription requests.
Noticed that it's not necessary to call "unauthorize" when setting
subscription="remove".
2015-04-10 16:30:04 +02:00
JC Brand
827efab093
Fix and expand broken tests after recent refactor
2015-04-10 01:23:33 +02:00
JC Brand
7aba5b2af5
Fix test after refactoring.
2015-04-08 10:34:14 +02:00
JC Brand
330b1434bd
Completely remove strophe.roster as a dependency.
2015-04-06 20:55:38 +02:00
JC Brand
1ea770c79a
Add the ability to reject presence subscriptions.
...
Still part of the refactoring of strophe.roster.
2015-04-06 12:26:08 +02:00
JC Brand
f380e11851
Initial refactoring of roster and presence subscriptions.
...
The goal being to be able to remove strophe.roster completely.
2015-04-06 11:10:05 +02:00
JC Brand
762e2bac04
Write a test for rooms listing.
2015-03-01 19:09:10 +01:00
JC Brand
c7d5b8b13f
Refactor to no longer call muc.listRooms. updates #307
2015-03-01 13:32:53 +01:00
JC Brand
f283f6bce5
Fix failing tests after introducing AMD version of Strophe
2015-02-01 16:15:34 +01:00
Guillermo Bonvehi
4843f7efc2
Add fullname and jid to contact's tooltip in roster
...
It seems title attributes are limited to 512 chars, we will have
to live with that unless a custom tooltip is used.
2015-01-05 03:43:53 -03:00
Guillermo Bonvehí
00af792899
Unified pending/requesting checking
2014-12-10 22:42:09 -03:00
Guillermo Bonvehí
2354a27832
Always show pending/requesting users in roster
...
Even if show_only_online_users or hide_offline_users
are set, show users that are pending or requesting
2014-12-10 21:32:59 -03:00
JC Brand
55e32c735d
Fix tests
2014-10-27 23:06:11 +01:00
JC Brand
cdb86788a3
Fix tests.
...
In the previous commit, the mock connection object was refactored to use a real
Strophe.Connection object.
This caused a test in spec/controlbox.js to fail (due to a method that was now
no longer mocked).
Added a quick workaround (via monkeypatch) for now.
2014-10-24 21:45:48 +02:00
JC Brand
5e4d6bd3b2
Initial work on adding profiling tests.
2014-10-24 18:58:42 +02:00
JC Brand
4a89d28e38
Fix tests by depending on jquery obj.
...
Also fixed groupchat test by getting and including correct msg id.
2014-10-15 19:16:02 +02:00
JC Brand
ff32866f21
Mention live filter bugfix and add tests for it. updates #212
2014-08-31 21:20:28 +02:00
JC Brand
278c2c428d
Add tests for the live filter functionality. updates #212
2014-08-18 22:39:24 +02:00
JC Brand
e7d563b34b
Let tests pass again
2014-08-08 22:06:01 +02:00
JC Brand
cdf0a0d279
Make sure contacts added to a collapsed group header are hidden.
...
updates #83
2014-08-04 18:48:48 +02:00
JC Brand
9a3104cb21
"is_last" property no longer used.
2014-08-04 18:00:30 +02:00
JC Brand
6a28420d09
Fix linting errors
2014-08-03 23:07:48 +02:00
JC Brand
33d84a0c8e
Store roster on converse obj.
...
Storing it on the rosterview causes race conditions.
2014-08-03 23:05:36 +02:00
JC Brand
ce0096de33
Remember toggle state of group headers. updates #83
2014-08-03 20:48:49 +02:00
JC Brand
219d5c8a30
Major refactor.
...
The RosterView view is now an overview of RosterGroup objects.
RosterGroup objects each have their own collection of contacts which fall under that group.
Additionally, the RosterView has a collection of all contacts.
The comparator of RosterContacts is now used to correctly position roster
contacts and we therefore no longer need to explicitly sort them afterwards.
updates #83
updates #151
2014-08-02 19:31:53 +02:00
JC Brand
ca260f7b4f
Add support for separe group objects and collection
2014-08-02 14:25:24 +02:00
JC Brand
fdd0583a0c
Rename RosterItem to RosterContact
2014-08-02 11:35:03 +02:00
JC Brand
76a18bae0d
Finish the test which checks that contacts can appear in more than one group
2014-08-01 21:36:20 +02:00