mirror of https://github.com/zulip/zulip.git
node tests: Replace trigger() calls in activity.js.
We now use get_on_handler() to call event handlers, rather than simulating a triggered event.
This commit is contained in:
parent
9c90a3d1a3
commit
99a6a9b70d
|
@ -359,16 +359,16 @@ $('.user-list-filter').is = function (sel) {
|
|||
};
|
||||
compose_actions.start = function () {};
|
||||
|
||||
var event = $.Event('keydown', e);
|
||||
$(".user-list-filter").trigger(event);
|
||||
var keydown_handler = $('.user-list-filter').get_on_handler('keydown');
|
||||
keydown_handler(e);
|
||||
}());
|
||||
|
||||
(function test_focus_user_filter() {
|
||||
var e = {
|
||||
stopPropagation: function () {},
|
||||
};
|
||||
var event = $.Event('click', e);
|
||||
$(".user-list-filter").trigger(event);
|
||||
var click_handler = $('.user-list-filter').get_on_handler('click');
|
||||
click_handler(e);
|
||||
}());
|
||||
|
||||
presence.presence_info = {};
|
||||
|
|
Loading…
Reference in New Issue