mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
unread_ops: Avoid jQuery sizzle extension :visible.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
6c0e7b20f7
commit
8325a51750
@@ -817,7 +817,7 @@ export function viewport_is_visible_and_focused(): boolean {
|
||||
overlays.any_active() ||
|
||||
modals.any_active() ||
|
||||
!is_window_focused() ||
|
||||
!$("#message_feed_container").is(":visible")
|
||||
$("#message_feed_container").css("display") === "none"
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
@@ -75,6 +75,10 @@ const denmark_stream = make_stream({
|
||||
});
|
||||
|
||||
run_test("unread_ops", ({override}) => {
|
||||
$("#message_feed_container").css = (property) => {
|
||||
assert.equal(property, "display");
|
||||
return "block";
|
||||
};
|
||||
stream_data.clear_subscriptions();
|
||||
stream_data.add_sub(denmark_stream);
|
||||
message_store.clear_for_testing();
|
||||
|
Reference in New Issue
Block a user