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:
Steve Howell 2017-07-06 08:44:33 -04:00
parent 9c90a3d1a3
commit 99a6a9b70d
1 changed files with 4 additions and 4 deletions

View File

@ -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 = {};