You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by wy...@apache.org on 2026/10/20 08:24:58 UTC
(maka) 20/24: test(gpui): deliver animation frames in bounce regressions
This is an automated email from the ASF dual-hosted git repository.
M4n5ter pushed a commit to branch feat/nsh-tui-shell
in repository https://gitbox.apache.org/repos/asf/maka.git
commit 56d17bbab3db8f77fd64db53c73a15b1956f3d5c
Author: M4n5ter <m4...@gmail.com>
AuthorDate: Tue Oct 20 16:03:12 2026 +0800
test(gpui): deliver animation frames in bounce regressions
Drain the existing next-frame callbacks before each draw so retained inputs receive the same invalidation as the native frame loop. Keep the original clock intervals and return/geometry assertions.
Generated-by: OpenAI Codex
---
third-party/gpui-kit/crates/base/src/input/base/state.rs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/third-party/gpui-kit/crates/base/src/input/base/state.rs b/third-party/gpui-kit/crates/base/src/input/base/state.rs
index cc17e6ae68..abc25e9c52 100644
--- a/third-party/gpui-kit/crates/base/src/input/base/state.rs
+++ b/third-party/gpui-kit/crates/base/src/input/base/state.rs
@@ -6477,6 +6477,7 @@ mod tests {
for _ in 0..120 {
cx.executor()
.advance_clock(std::time::Duration::from_millis(16));
+ cx.update(|window, cx| window.simulate_next_frame(cx));
cx.update(|window, cx| window.draw(cx).clear(cx));
}
view.input.read_with(&cx, |state, _| {
@@ -6589,6 +6590,7 @@ mod tests {
for _ in 0..120 {
cx.executor()
.advance_clock(std::time::Duration::from_millis(16));
+ cx.update(|window, cx| window.simulate_next_frame(cx));
cx.update(|window, cx| window.draw(cx).clear(cx));
}
assert_eq!(
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org