mirror of
https://github.com/block/buzz.git
synced 2026-10-27 20:41:57 +00:00
Verify channel boundary and row cache sharing
Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
@@ -76,6 +76,15 @@ void timelineCalendarBuilderTests() {
|
||||
expect(padding.padding.resolve(TextDirection.ltr).bottom, 0);
|
||||
}
|
||||
|
||||
// Observe one settled channel rebuild, excluding initial hydration builds.
|
||||
conversions.clear();
|
||||
tester.element(find.byType(ChannelDetailPage)).markNeedsBuild();
|
||||
await tester.pump();
|
||||
final channelCaches = conversions
|
||||
.where((counts) => counts.isNotEmpty)
|
||||
.toList();
|
||||
expect(channelCaches, hasLength(1));
|
||||
expect(channelCaches.single.keys, containsAll([1000, 1060, 1120]));
|
||||
expectEndSpacing('message-row-$threadIdThreadDashRoot');
|
||||
expectEndSpacing('system-message-row-calendar-system');
|
||||
final head = formatTimeline([root]).single;
|
||||
|
||||
Reference in New Issue
Block a user