mirror of
https://github.com/storytold/figcraft.git
synced 2026-11-13 13:52:34 +00:00
Menus: the sweep test checks the submenu shown is the hovered row's (#2093 review)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
This commit is contained in:
1 parent
35ac3a92d5
commit
c4302902d2
1 file changed
+1
-1
@@ -251,7 +251,7 @@ fn sweeping_across_rows_shows_only_the_row_under_the_pointer() {
|
||||
u.hover(pos2(r.min.x + 20.0, r.center().y));
|
||||
// (A panel drawn above the row the pointer is on goes the next frame.)
|
||||
u.frame(vec![]);
|
||||
assert_eq!(u.tops_shown().len(), 1, "{:?} open on row {i}", u.tops_shown());
|
||||
assert_eq!(u.tops_shown(), [TOPS[i]], "wrong submenu open on row {i}");
|
||||
}
|
||||
assert_eq!(u.tops_shown(), ["Arrange"]);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user