mirror of
https://github.com/discourse/discourse.git
synced 2025-04-09 23:50:51 +08:00
DEV: Correct test waiter for requestAnimationFrame (#20413)
Followup to 207c0dd88c6d5450aa1c0de6e9a929840972c940. Waiters should return false to 'wait', true to continue.
This commit is contained in:
parent
cf0c73d1b7
commit
e9ef4900ca
@ -59,7 +59,7 @@ const SiteHeaderComponent = MountWidget.extend(
|
|||||||
_animateOpening(panel) {
|
_animateOpening(panel) {
|
||||||
let waiter;
|
let waiter;
|
||||||
if (DEBUG && isTesting()) {
|
if (DEBUG && isTesting()) {
|
||||||
waiter = () => true;
|
waiter = () => false;
|
||||||
registerWaiter(waiter);
|
registerWaiter(waiter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user