Polish adaptive app chrome
This commit is contained in:
@@ -82,6 +82,16 @@ void main() {
|
||||
expect(_text('error'), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('the rendered/raw control remains compact', (tester) async {
|
||||
tester.view.physicalSize = const Size(800, 700);
|
||||
tester.view.devicePixelRatio = 1;
|
||||
addTearDown(tester.view.reset);
|
||||
await tester.pumpWidget(_material(_view()));
|
||||
|
||||
final control = find.byKey(const Key('markdown-source-mode'));
|
||||
expect(tester.getRect(control).width, lessThan(221));
|
||||
});
|
||||
|
||||
testWidgets('the raw section keeps unknown fields exact and selectable', (
|
||||
tester,
|
||||
) async {
|
||||
|
||||
Reference in New Issue
Block a user