Mention live filter bugfix and add tests for it. updates #212

This commit is contained in:
JC Brand 2014-08-31 21:20:28 +02:00
parent 37255a2692
commit ff32866f21
2 changed files with 15 additions and 1 deletions

View File

@ -5,6 +5,7 @@ Changelog
------------------
* Converse.js now responds to XEP-0030: Service Discovery requests. [jcbrand]
* #212 Bugfix. Groups weren't being show again after the live filter was cleared. [jcbrand]
* #215 (and also #75) XEP-0249: Direct MUC Invitations. [jcbrand]
* #216 Contacts tab empty when using xhr_user_search. [hcderaad and jcbrand]

View File

@ -179,7 +179,6 @@
runs (function () {
expect($roster.find('dd:visible').length).toBe(5);
expect($roster.find('dt:visible').length).toBe(4);
$filter.val("xxx");
$filter.trigger('keydown');
});
@ -187,6 +186,13 @@
runs (function () {
expect($roster.find('dd:visible').length).toBe(0);
expect($roster.find('dt:visible').length).toBe(0);
$filter.val(""); // Check that contacts are shown again, when the filter string is cleared.
$filter.trigger('keydown');
});
waits(350); // Needed, due to debounce
runs(function () {
expect($roster.find('dd:visible').length).toBe(15);
expect($roster.find('dt:visible').length).toBe(5);
});
converse.roster_groups = false;
});
@ -219,6 +225,13 @@
waits(350); // Needed, due to debounce
runs (function () {
expect($roster.find('dt:visible').length).toBe(0);
$filter.val(""); // Check that groups are shown again, when the filter string is cleared.
$filter.trigger('keydown');
});
waits(350); // Needed, due to debounce
runs(function () {
expect($roster.find('dd:visible').length).toBe(15);
expect($roster.find('dt:visible').length).toBe(5);
});
converse.roster_groups = false;
});