test(sidebar): align flat tree buffer expectation

This commit is contained in:
t8y2 2026-05-12 14:53:22 +08:00
parent 53a45330a6
commit c8d4a04a31
1 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,8 @@ test("shouldVirtualizeFlatTree virtualizes every non-empty sidebar tree", () =>
test("sidebar virtual tree keeps enough buffered rows for fast scrolling", () => {
assert.equal(SIDEBAR_TREE_ROW_HEIGHT, 28);
assert.ok(SIDEBAR_TREE_SCROLL_BUFFER >= SIDEBAR_TREE_ROW_HEIGHT * 40);
assert.equal(SIDEBAR_TREE_SCROLL_BUFFER, 600);
assert.ok(SIDEBAR_TREE_SCROLL_BUFFER >= SIDEBAR_TREE_ROW_HEIGHT * 20);
});
test("sidebar virtual tree prerenders enough rows for the first frame", () => {