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 () {};
|
compose_actions.start = function () {};
|
||||||
|
|
||||||
var event = $.Event('keydown', e);
|
var keydown_handler = $('.user-list-filter').get_on_handler('keydown');
|
||||||
$(".user-list-filter").trigger(event);
|
keydown_handler(e);
|
||||||
}());
|
}());
|
||||||
|
|
||||||
(function test_focus_user_filter() {
|
(function test_focus_user_filter() {
|
||||||
var e = {
|
var e = {
|
||||||
stopPropagation: function () {},
|
stopPropagation: function () {},
|
||||||
};
|
};
|
||||||
var event = $.Event('click', e);
|
var click_handler = $('.user-list-filter').get_on_handler('click');
|
||||||
$(".user-list-filter").trigger(event);
|
click_handler(e);
|
||||||
}());
|
}());
|
||||||
|
|
||||||
presence.presence_info = {};
|
presence.presence_info = {};
|
||||||
|
|
Loading…
Reference in New Issue