Commit ef398d9e authored by Lau Ching Jun's avatar Lau Ching Jun Committed by Flutter GitHub Bot

Disable most screenshot tests for web until we understand the flakes. (#47554)

parent 85e9be36
...@@ -82,7 +82,7 @@ void main() { ...@@ -82,7 +82,7 @@ void main() {
find.byKey(_painterKey), find.byKey(_painterKey),
matchesGoldenFile('bottom_app_bar_theme.custom_shape.png'), matchesGoldenFile('bottom_app_bar_theme.custom_shape.png'),
); );
}); }, skip: isBrowser);
testWidgets('BAB theme does not affect defaults', (WidgetTester tester) async { testWidgets('BAB theme does not affect defaults', (WidgetTester tester) async {
await tester.pumpWidget(const MaterialApp( await tester.pumpWidget(const MaterialApp(
......
...@@ -891,7 +891,7 @@ void main() { ...@@ -891,7 +891,7 @@ void main() {
await tester.tap(find.text('Alarm')); await tester.tap(find.text('Alarm'));
await tester.pump(const Duration(seconds: 1)); await tester.pump(const Duration(seconds: 1));
expect(Theme.of(tester.element(find.text('Alarm'))).brightness, equals(Brightness.dark)); expect(Theme.of(tester.element(find.text('Alarm'))).brightness, equals(Brightness.dark));
}); }, skip: isBrowser);
testWidgets('BottomNavigationBar iconSize test', (WidgetTester tester) async { testWidgets('BottomNavigationBar iconSize test', (WidgetTester tester) async {
double builderIconSize; double builderIconSize;
...@@ -1001,7 +1001,7 @@ void main() { ...@@ -1001,7 +1001,7 @@ void main() {
final RenderBox box = tester.renderObject(find.byType(BottomNavigationBar)); final RenderBox box = tester.renderObject(find.byType(BottomNavigationBar));
expect(box.size.height, equals(66.0)); expect(box.size.height, equals(66.0));
}); }, skip: isBrowser);
testWidgets('BottomNavigationBar limits width of tiles with long titles', (WidgetTester tester) async { testWidgets('BottomNavigationBar limits width of tiles with long titles', (WidgetTester tester) async {
final Text longTextA = Text(''.padLeft(100, 'A')); final Text longTextA = Text(''.padLeft(100, 'A'));
...@@ -1033,7 +1033,7 @@ void main() { ...@@ -1033,7 +1033,7 @@ void main() {
expect(itemBoxA.size, equals(const Size(400.0, 14.0))); expect(itemBoxA.size, equals(const Size(400.0, 14.0)));
final RenderBox itemBoxB = tester.renderObject(find.text(longTextB.data)); final RenderBox itemBoxB = tester.renderObject(find.text(longTextB.data));
expect(itemBoxB.size, equals(const Size(400.0, 14.0))); expect(itemBoxB.size, equals(const Size(400.0, 14.0)));
}); }, skip: isBrowser);
testWidgets('BottomNavigationBar paints circles', (WidgetTester tester) async { testWidgets('BottomNavigationBar paints circles', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -1103,7 +1103,7 @@ void main() { ...@@ -1103,7 +1103,7 @@ void main() {
..translate(x: 400.0) ..translate(x: 400.0)
..circle(x: 200.0), ..circle(x: 200.0),
); );
}); }, skip: isBrowser);
testWidgets('BottomNavigationBar inactiveIcon shown', (WidgetTester tester) async { testWidgets('BottomNavigationBar inactiveIcon shown', (WidgetTester tester) async {
const Key filled = Key('filled'); const Key filled = Key('filled');
...@@ -1429,7 +1429,7 @@ void main() { ...@@ -1429,7 +1429,7 @@ void main() {
matchesGoldenFile('bottom_navigation_bar.shifting_transition.$pump.png'), matchesGoldenFile('bottom_navigation_bar.shifting_transition.$pump.png'),
); );
} }
}); }, skip: isBrowser);
testWidgets('BottomNavigationBar item title should not be nullable', (WidgetTester tester) async { testWidgets('BottomNavigationBar item title should not be nullable', (WidgetTester tester) async {
expect(() { expect(() {
......
...@@ -132,7 +132,7 @@ void main() { ...@@ -132,7 +132,7 @@ void main() {
find.byKey(_painterKey), find.byKey(_painterKey),
matchesGoldenFile('dialog_theme.dialog_with_custom_border.png'), matchesGoldenFile('dialog_theme.dialog_with_custom_border.png'),
); );
}); }, skip: isBrowser);
testWidgets('Custom Title Text Style - Constructor Param', (WidgetTester tester) async { testWidgets('Custom Title Text Style - Constructor Param', (WidgetTester tester) async {
const String titleText = 'Title'; const String titleText = 'Title';
......
...@@ -182,7 +182,7 @@ void main() { ...@@ -182,7 +182,7 @@ void main() {
find.ancestor(of: buttonFinder, matching: find.byType(RepaintBoundary)).first, find.ancestor(of: buttonFinder, matching: find.byType(RepaintBoundary)).first,
matchesGoldenFile('dropdown_test.default.png'), matchesGoldenFile('dropdown_test.default.png'),
); );
}); }, skip: isBrowser);
testWidgets('Expanded dropdown golden', (WidgetTester tester) async { testWidgets('Expanded dropdown golden', (WidgetTester tester) async {
final Key buttonKey = UniqueKey(); final Key buttonKey = UniqueKey();
...@@ -194,7 +194,7 @@ void main() { ...@@ -194,7 +194,7 @@ void main() {
find.ancestor(of: buttonFinder, matching: find.byType(RepaintBoundary)).first, find.ancestor(of: buttonFinder, matching: find.byType(RepaintBoundary)).first,
matchesGoldenFile('dropdown_test.expanded.png'), matchesGoldenFile('dropdown_test.expanded.png'),
); );
}); }, skip: isBrowser);
testWidgets('Dropdown button control test', (WidgetTester tester) async { testWidgets('Dropdown button control test', (WidgetTester tester) async {
String value = 'one'; String value = 'one';
......
...@@ -85,7 +85,7 @@ void main() { ...@@ -85,7 +85,7 @@ void main() {
find.byType(FlexibleSpaceBar), find.byType(FlexibleSpaceBar),
matchesGoldenFile('flexible_space_bar_stretch_mode.blur_background.png'), matchesGoldenFile('flexible_space_bar_stretch_mode.blur_background.png'),
); );
}); }, skip: isBrowser);
testWidgets('FlexibleSpaceBar stretch mode fadeTitle', (WidgetTester tester) async { testWidgets('FlexibleSpaceBar stretch mode fadeTitle', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
......
...@@ -282,7 +282,7 @@ void main() { ...@@ -282,7 +282,7 @@ void main() {
find.byKey(painterKey), find.byKey(painterKey),
matchesGoldenFile('radio.ink_ripple.png'), matchesGoldenFile('radio.ink_ripple.png'),
); );
}); }, skip: isBrowser);
testWidgets('Radio is focusable and has correct focus color', (WidgetTester tester) async { testWidgets('Radio is focusable and has correct focus color', (WidgetTester tester) async {
final FocusNode focusNode = FocusNode(debugLabel: 'Radio'); final FocusNode focusNode = FocusNode(debugLabel: 'Radio');
......
...@@ -269,7 +269,7 @@ void main() { ...@@ -269,7 +269,7 @@ void main() {
find.byKey(_painterKey), find.byKey(_painterKey),
matchesGoldenFile('tab_bar_theme.tab_indicator_size_tab.png'), matchesGoldenFile('tab_bar_theme.tab_indicator_size_tab.png'),
); );
}); }, skip: isBrowser);
testWidgets('Tab bar theme overrides tab indicator size (label)', (WidgetTester tester) async { testWidgets('Tab bar theme overrides tab indicator size (label)', (WidgetTester tester) async {
const TabBarTheme tabBarTheme = TabBarTheme(indicatorSize: TabBarIndicatorSize.label); const TabBarTheme tabBarTheme = TabBarTheme(indicatorSize: TabBarIndicatorSize.label);
...@@ -280,7 +280,7 @@ void main() { ...@@ -280,7 +280,7 @@ void main() {
find.byKey(_painterKey), find.byKey(_painterKey),
matchesGoldenFile('tab_bar_theme.tab_indicator_size_label.png'), matchesGoldenFile('tab_bar_theme.tab_indicator_size_label.png'),
); );
}); }, skip: isBrowser);
testWidgets('Tab bar theme - custom tab indicator', (WidgetTester tester) async { testWidgets('Tab bar theme - custom tab indicator', (WidgetTester tester) async {
final TabBarTheme tabBarTheme = TabBarTheme( final TabBarTheme tabBarTheme = TabBarTheme(
...@@ -296,7 +296,7 @@ void main() { ...@@ -296,7 +296,7 @@ void main() {
find.byKey(_painterKey), find.byKey(_painterKey),
matchesGoldenFile('tab_bar_theme.custom_tab_indicator.png'), matchesGoldenFile('tab_bar_theme.custom_tab_indicator.png'),
); );
}); }, skip: isBrowser);
testWidgets('Tab bar theme - beveled rect indicator', (WidgetTester tester) async { testWidgets('Tab bar theme - beveled rect indicator', (WidgetTester tester) async {
final TabBarTheme tabBarTheme = TabBarTheme( final TabBarTheme tabBarTheme = TabBarTheme(
...@@ -312,5 +312,5 @@ void main() { ...@@ -312,5 +312,5 @@ void main() {
find.byKey(_painterKey), find.byKey(_painterKey),
matchesGoldenFile('tab_bar_theme.beveled_rect_indicator.png'), matchesGoldenFile('tab_bar_theme.beveled_rect_indicator.png'),
); );
}); }, skip: isBrowser);
} }
...@@ -494,7 +494,7 @@ void main() { ...@@ -494,7 +494,7 @@ void main() {
find.byType(Overlay), find.byType(Overlay),
matchesGoldenFile('text_field_opacity_test.0.png'), matchesGoldenFile('text_field_opacity_test.0.png'),
); );
}); }, skip: isBrowser);
testWidgets('text field toolbar options correctly changes options (iOS)', testWidgets('text field toolbar options correctly changes options (iOS)',
(WidgetTester tester) async { (WidgetTester tester) async {
...@@ -544,7 +544,7 @@ void main() { ...@@ -544,7 +544,7 @@ void main() {
expect(find.text('Copy'), findsOneWidget); expect(find.text('Copy'), findsOneWidget);
expect(find.text('Cut'), findsNothing); expect(find.text('Cut'), findsNothing);
expect(find.text('Select All'), findsNothing); expect(find.text('Select All'), findsNothing);
}); }, skip: isBrowser);
testWidgets('text field toolbar options correctly changes options (Android)', testWidgets('text field toolbar options correctly changes options (Android)',
(WidgetTester tester) async { (WidgetTester tester) async {
...@@ -577,7 +577,7 @@ void main() { ...@@ -577,7 +577,7 @@ void main() {
expect(find.text('COPY'), findsOneWidget); expect(find.text('COPY'), findsOneWidget);
expect(find.text('CUT'), findsNothing); expect(find.text('CUT'), findsNothing);
expect(find.text('SELECT ALL'), findsNothing); expect(find.text('SELECT ALL'), findsNothing);
}); }, skip: isBrowser);
// TODO(hansmuller): restore these tests after the fix for #24876 has landed. // TODO(hansmuller): restore these tests after the fix for #24876 has landed.
/* /*
...@@ -2853,7 +2853,7 @@ void main() { ...@@ -2853,7 +2853,7 @@ void main() {
// and the left edge of the input and label. // and the left edge of the input and label.
expect(iconRight + 28.0, equals(tester.getTopLeft(find.text('label')).dx)); expect(iconRight + 28.0, equals(tester.getTopLeft(find.text('label')).dx));
expect(iconRight + 28.0, equals(tester.getTopLeft(find.byType(EditableText)).dx)); expect(iconRight + 28.0, equals(tester.getTopLeft(find.byType(EditableText)).dx));
}); }, skip: isBrowser);
testWidgets('Collapsed hint text placement', (WidgetTester tester) async { testWidgets('Collapsed hint text placement', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
......
...@@ -52,6 +52,7 @@ void main() { ...@@ -52,6 +52,7 @@ void main() {
matchesGoldenFile('localized_fonts.rich_text.styled_text_span.png'), matchesGoldenFile('localized_fonts.rich_text.styled_text_span.png'),
); );
}, },
skip: isBrowser, // TODO(yjbanov): implement goldens on the Web: https://github.com/flutter/flutter/issues/40297
); );
testWidgets( testWidgets(
...@@ -103,6 +104,7 @@ void main() { ...@@ -103,6 +104,7 @@ void main() {
matchesGoldenFile('localized_fonts.text_ambient_locale.chars.png'), matchesGoldenFile('localized_fonts.text_ambient_locale.chars.png'),
); );
}, },
skip: isBrowser, // TODO(yjbanov): implement goldens on the Web: https://github.com/flutter/flutter/issues/40297
); );
testWidgets( testWidgets(
...@@ -146,6 +148,7 @@ void main() { ...@@ -146,6 +148,7 @@ void main() {
matchesGoldenFile('localized_fonts.text_explicit_locale.chars.png'), matchesGoldenFile('localized_fonts.text_explicit_locale.chars.png'),
); );
}, },
skip: isBrowser, // TODO(yjbanov): implement goldens on the Web: https://github.com/flutter/flutter/issues/40297
); );
} }
...@@ -45,5 +45,5 @@ void main() { ...@@ -45,5 +45,5 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('backdrop_filter_test.cull_rect.png'), matchesGoldenFile('backdrop_filter_test.cull_rect.png'),
); );
}); }, skip: isBrowser);
} }
...@@ -383,7 +383,7 @@ void main() { ...@@ -383,7 +383,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.ClipRect.png'), matchesGoldenFile('clip.ClipRect.png'),
); );
}); }, skip: isBrowser);
testWidgets('ClipRect save, overlay, and antialiasing', (WidgetTester tester) async { testWidgets('ClipRect save, overlay, and antialiasing', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -423,7 +423,7 @@ void main() { ...@@ -423,7 +423,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.ClipRectOverlay.png'), matchesGoldenFile('clip.ClipRectOverlay.png'),
); );
}); }, skip: isBrowser);
testWidgets('ClipRRect painting', (WidgetTester tester) async { testWidgets('ClipRRect painting', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -472,7 +472,7 @@ void main() { ...@@ -472,7 +472,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.ClipRRect.png'), matchesGoldenFile('clip.ClipRRect.png'),
); );
}); }, skip: isBrowser);
testWidgets('ClipOval painting', (WidgetTester tester) async { testWidgets('ClipOval painting', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -515,7 +515,7 @@ void main() { ...@@ -515,7 +515,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.ClipOval.png'), matchesGoldenFile('clip.ClipOval.png'),
); );
}); }, skip: isBrowser);
testWidgets('ClipPath painting', (WidgetTester tester) async { testWidgets('ClipPath painting', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -563,7 +563,7 @@ void main() { ...@@ -563,7 +563,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.ClipPath.png'), matchesGoldenFile('clip.ClipPath.png'),
); );
}); }, skip: isBrowser);
Center genPhysicalModel(Clip clipBehavior) { Center genPhysicalModel(Clip clipBehavior) {
return Center( return Center(
...@@ -608,7 +608,7 @@ void main() { ...@@ -608,7 +608,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.PhysicalModel.antiAlias.png'), matchesGoldenFile('clip.PhysicalModel.antiAlias.png'),
); );
}); }, skip: isBrowser);
testWidgets('PhysicalModel painting with Clip.hardEdge', (WidgetTester tester) async { testWidgets('PhysicalModel painting with Clip.hardEdge', (WidgetTester tester) async {
await tester.pumpWidget(genPhysicalModel(Clip.hardEdge)); await tester.pumpWidget(genPhysicalModel(Clip.hardEdge));
...@@ -616,7 +616,7 @@ void main() { ...@@ -616,7 +616,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.PhysicalModel.hardEdge.png'), matchesGoldenFile('clip.PhysicalModel.hardEdge.png'),
); );
}); }, skip: isBrowser);
// There will be bleeding edges on the rect edges, but there shouldn't be any bleeding edges on the // There will be bleeding edges on the rect edges, but there shouldn't be any bleeding edges on the
// round corners. // round corners.
...@@ -626,7 +626,7 @@ void main() { ...@@ -626,7 +626,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.PhysicalModel.antiAliasWithSaveLayer.png'), matchesGoldenFile('clip.PhysicalModel.antiAliasWithSaveLayer.png'),
); );
}); }, skip: isBrowser);
testWidgets('Default PhysicalModel painting', (WidgetTester tester) async { testWidgets('Default PhysicalModel painting', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -668,7 +668,7 @@ void main() { ...@@ -668,7 +668,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.PhysicalModel.default.png'), matchesGoldenFile('clip.PhysicalModel.default.png'),
); );
}); }, skip: isBrowser);
Center genPhysicalShape(Clip clipBehavior) { Center genPhysicalShape(Clip clipBehavior) {
return Center( return Center(
...@@ -717,7 +717,7 @@ void main() { ...@@ -717,7 +717,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.PhysicalShape.antiAlias.png'), matchesGoldenFile('clip.PhysicalShape.antiAlias.png'),
); );
}); }, skip: isBrowser);
testWidgets('PhysicalShape painting with Clip.hardEdge', (WidgetTester tester) async { testWidgets('PhysicalShape painting with Clip.hardEdge', (WidgetTester tester) async {
await tester.pumpWidget(genPhysicalShape(Clip.hardEdge)); await tester.pumpWidget(genPhysicalShape(Clip.hardEdge));
...@@ -725,7 +725,7 @@ void main() { ...@@ -725,7 +725,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.PhysicalShape.hardEdge.png'), matchesGoldenFile('clip.PhysicalShape.hardEdge.png'),
); );
}); }, skip: isBrowser);
testWidgets('PhysicalShape painting with Clip.antiAliasWithSaveLayer', (WidgetTester tester) async { testWidgets('PhysicalShape painting with Clip.antiAliasWithSaveLayer', (WidgetTester tester) async {
await tester.pumpWidget(genPhysicalShape(Clip.antiAliasWithSaveLayer)); await tester.pumpWidget(genPhysicalShape(Clip.antiAliasWithSaveLayer));
...@@ -733,7 +733,7 @@ void main() { ...@@ -733,7 +733,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.PhysicalShape.antiAliasWithSaveLayer.png'), matchesGoldenFile('clip.PhysicalShape.antiAliasWithSaveLayer.png'),
); );
}); }, skip: isBrowser);
testWidgets('PhysicalShape painting', (WidgetTester tester) async { testWidgets('PhysicalShape painting', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -779,7 +779,7 @@ void main() { ...@@ -779,7 +779,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('clip.PhysicalShape.default.png'), matchesGoldenFile('clip.PhysicalShape.default.png'),
); );
}); }, skip: isBrowser);
testWidgets('ClipPath.shape', (WidgetTester tester) async { testWidgets('ClipPath.shape', (WidgetTester tester) async {
final List<String> logs = <String>[]; final List<String> logs = <String>[];
......
...@@ -22,7 +22,7 @@ void main() { ...@@ -22,7 +22,7 @@ void main() {
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
matchesGoldenFile('invert_colors_test.0.png'), matchesGoldenFile('invert_colors_test.0.png'),
); );
}); }, skip: isBrowser);
testWidgets('InvertColors and ColorFilter', (WidgetTester tester) async { testWidgets('InvertColors and ColorFilter', (WidgetTester tester) async {
await tester.pumpWidget(const RepaintBoundary( await tester.pumpWidget(const RepaintBoundary(
...@@ -40,7 +40,7 @@ void main() { ...@@ -40,7 +40,7 @@ void main() {
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
matchesGoldenFile('invert_colors_test.1.png'), matchesGoldenFile('invert_colors_test.1.png'),
); );
}); }, skip: isBrowser);
} }
// Draws a rectangle sized by the parent widget with [color], [colorFilter], // Draws a rectangle sized by the parent widget with [color], [colorFilter],
......
...@@ -537,7 +537,7 @@ void main() { ...@@ -537,7 +537,7 @@ void main() {
find.byKey(const Key('list_wheel_scroll_view')), find.byKey(const Key('list_wheel_scroll_view')),
matchesGoldenFile('list_wheel_scroll_view.center_child.magnified.png'), matchesGoldenFile('list_wheel_scroll_view.center_child.magnified.png'),
); );
}); }, skip: isBrowser);
testWidgets('Default middle transform', (WidgetTester tester) async { testWidgets('Default middle transform', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -591,7 +591,7 @@ void main() { ...@@ -591,7 +591,7 @@ void main() {
find.byKey(const Key('list_wheel_scroll_view')), find.byKey(const Key('list_wheel_scroll_view')),
matchesGoldenFile('list_wheel_scroll_view.curved_wheel.left.png'), matchesGoldenFile('list_wheel_scroll_view.curved_wheel.left.png'),
); );
}); }, skip: isBrowser);
testWidgets('Scrolling, diameterRatio, perspective all changes matrix', (WidgetTester tester) async { testWidgets('Scrolling, diameterRatio, perspective all changes matrix', (WidgetTester tester) async {
final ScrollController controller = ScrollController(initialScrollOffset: 200.0); final ScrollController controller = ScrollController(initialScrollOffset: 200.0);
......
...@@ -180,7 +180,7 @@ void main() { ...@@ -180,7 +180,7 @@ void main() {
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesGoldenFile('opacity_test.offset.png'), matchesGoldenFile('opacity_test.offset.png'),
); );
}); }, skip: isBrowser);
testWidgets('empty opacity does not crash', (WidgetTester tester) async { testWidgets('empty opacity does not crash', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -191,5 +191,5 @@ void main() { ...@@ -191,5 +191,5 @@ void main() {
// empty opacity layer is sent. // empty opacity layer is sent.
final OffsetLayer offsetLayer = element.renderObject.debugLayer as OffsetLayer; final OffsetLayer offsetLayer = element.renderObject.debugLayer as OffsetLayer;
await offsetLayer.toImage(const Rect.fromLTRB(0.0, 0.0, 1.0, 1.0)); await offsetLayer.toImage(const Rect.fromLTRB(0.0, 0.0, 1.0, 1.0));
}, skip: isBrowser); // `Layer.toImage()` doesn't work on web }, skip: isBrowser);
} }
...@@ -112,7 +112,7 @@ void main() { ...@@ -112,7 +112,7 @@ void main() {
find.byKey(key), find.byKey(key),
matchesGoldenFile('physical_model_overflow.png'), matchesGoldenFile('physical_model_overflow.png'),
); );
}); }, skip: isBrowser);
group('PhysicalModelLayer checks elevation', () { group('PhysicalModelLayer checks elevation', () {
Future<void> _testStackChildren( Future<void> _testStackChildren(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment