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