Merge commit 'a38f1bb3d1d8f3eb841a5eb618eb70f184ce4c7d' into pipelines/run-20261111-1927-open-search-with-alt-slash-and-cmd-slash-f9f5
This commit is contained in:
@@ -47,6 +47,36 @@ void main() {
|
||||
expect(tester.getRect(find.byType(ProbeContent)).top, greaterThan(80));
|
||||
});
|
||||
|
||||
testWidgets('the outline covers the full window and uses the theme palette', (
|
||||
tester,
|
||||
) async {
|
||||
manager.open('probe', 'a');
|
||||
await pumpProbe(tester, manager);
|
||||
|
||||
final outline = find.byType(WindowOutline);
|
||||
expect(outline, findsOneWidget);
|
||||
expect(tester.getSize(outline), const Size(360, 420));
|
||||
final decoration =
|
||||
tester
|
||||
.widget<DecoratedBox>(
|
||||
find.descendant(
|
||||
of: outline,
|
||||
matching: find.byType(DecoratedBox),
|
||||
),
|
||||
)
|
||||
.decoration
|
||||
as BoxDecoration;
|
||||
expect(
|
||||
decoration.border,
|
||||
Border.all(
|
||||
color: Theme.of(
|
||||
tester.element(find.byType(WindowOutline)),
|
||||
).colorScheme.outlineVariant,
|
||||
),
|
||||
);
|
||||
expect(decoration.borderRadius, BorderRadius.circular(windowCornerRadius));
|
||||
});
|
||||
|
||||
testWidgets('the app behind takes input everywhere outside a window', (
|
||||
tester,
|
||||
) async {
|
||||
|
||||
Reference in New Issue
Block a user