Commit 328647aa authored by Kate Lovett's avatar Kate Lovett

Removed matchesGoldenFile and skips

parent 8861e9f3
...@@ -855,8 +855,6 @@ void main() { ...@@ -855,8 +855,6 @@ void main() {
await expectLater( await expectLater(
find.byType(CupertinoDatePicker), find.byType(CupertinoDatePicker),
matchesSkiaGoldFile('date_picker_test.datetime.initial.png') matchesSkiaGoldFile('date_picker_test.datetime.initial.png')
// matchesGoldenFile('date_picker_test.datetime.initial.png'),
// skip: !Platform.isLinux
); );
// Slightly drag the hour component to make the current hour off-center. // Slightly drag the hour component to make the current hour off-center.
...@@ -866,8 +864,6 @@ void main() { ...@@ -866,8 +864,6 @@ void main() {
await expectLater( await expectLater(
find.byType(CupertinoDatePicker), find.byType(CupertinoDatePicker),
matchesSkiaGoldFile('date_picker_test.datetime.drag.png'), matchesSkiaGoldFile('date_picker_test.datetime.drag.png'),
// matchesGoldenFile('date_picker_test.datetime.drag.png'),
// skip: !Platform.isLinux
); );
}); });
} }
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
...@@ -801,13 +799,9 @@ void main() { ...@@ -801,13 +799,9 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).last, find.byType(RepaintBoundary).last,
//matchesGoldenFile('nav_bar_test.standard_title.1.png'),
matchesSkiaGoldFile('nav_bar_test.standard_title.png'), matchesSkiaGoldFile('nav_bar_test.standard_title.png'),
); );
}, },
// TODO(xster): remove once https://github.com/flutter/flutter/issues/17483
// is fixed.
// skip: !Platform.isLinux,
); );
testWidgets( testWidgets(
...@@ -836,14 +830,10 @@ void main() { ...@@ -836,14 +830,10 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).last, find.byType(RepaintBoundary).last,
// matchesGoldenFile('nav_bar_test.large_title.1.png'),
matchesSkiaGoldFile('nav_bar_test.large_title.png'), matchesSkiaGoldFile('nav_bar_test.large_title.png'),
); );
}, },
// TODO(xster): remove once https://github.com/flutter/flutter/issues/17483 );
// is fixed.
// skip: !Platform.isLinux,
);
testWidgets('NavBar draws a light system bar for a dark background', (WidgetTester tester) async { testWidgets('NavBar draws a light system bar for a dark background', (WidgetTester tester) async {
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io';
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
...@@ -1327,11 +1325,9 @@ void main() { ...@@ -1327,11 +1325,9 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
// matchesGoldenFile('segmented_control_test.0.0.png'),
matchesSkiaGoldFile('segmented_control_test.0.png'), matchesSkiaGoldFile('segmented_control_test.0.png'),
); );
}, //skip: !Platform.isLinux },);
);
testWidgets('Golden Test Pressed State', (WidgetTester tester) async { testWidgets('Golden Test Pressed State', (WidgetTester tester) async {
final Map<int, Widget> children = <int, Widget>{}; final Map<int, Widget> children = <int, Widget>{};
...@@ -1367,10 +1363,7 @@ void main() { ...@@ -1367,10 +1363,7 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
// matchesGoldenFile('segmented_control_test.1.0.png'),
matchesSkiaGoldFile('segmented_control_test.1.png'), matchesSkiaGoldFile('segmented_control_test.1.png'),
); );
}, },);
// skip: !Platform.isLinux
);
} }
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
...@@ -73,19 +71,15 @@ void main() { ...@@ -73,19 +71,15 @@ void main() {
await pump(FloatingActionButtonLocation.endDocked); await pump(FloatingActionButtonLocation.endDocked);
await expectLater( await expectLater(
find.byKey(key), find.byKey(key),
// matchesGoldenFile('bottom_app_bar.custom_shape.1.png'),
matchesSkiaGoldFile('bottom_app_bar.custom_shape.1.png'), matchesSkiaGoldFile('bottom_app_bar.custom_shape.1.png'),
); );
await pump(FloatingActionButtonLocation.centerDocked); await pump(FloatingActionButtonLocation.centerDocked);
await tester.pumpAndSettle(); await tester.pumpAndSettle();
await expectLater( await expectLater(
find.byKey(key), find.byKey(key),
// matchesGoldenFile('bottom_app_bar.custom_shape.2.png'),
matchesSkiaGoldFile('bottom_app_bar.custom_shape.2.png'), matchesSkiaGoldFile('bottom_app_bar.custom_shape.2.png'),
); );
}, },);
// skip: !Platform.isLinux
);
testWidgets('color defaults to Theme.bottomAppBarColor', (WidgetTester tester) async { testWidgets('color defaults to Theme.bottomAppBarColor', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io' show Platform;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
...@@ -83,8 +81,6 @@ void main() { ...@@ -83,8 +81,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(_painterKey), find.byKey(_painterKey),
matchesSkiaGoldFile('bottom_app_bar_theme.custom_shape.png'), matchesSkiaGoldFile('bottom_app_bar_theme.custom_shape.png'),
//matchesGoldenFile('bottom_app_bar_theme.custom_shape.png'),
//skip: !Platform.isLinux,
); );
}); });
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io';
import 'dart:ui'; import 'dart:ui';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
...@@ -1149,8 +1148,6 @@ void main() { ...@@ -1149,8 +1148,6 @@ void main() {
await expectLater( await expectLater(
find.byType(BottomNavigationBar), find.byType(BottomNavigationBar),
matchesSkiaGoldFile('bottom_navigation_bar.shifting_transition.$pump.png'), matchesSkiaGoldFile('bottom_navigation_bar.shifting_transition.$pump.png'),
// matchesGoldenFile('bottom_navigation_bar.shifting_transition.2.$pump.png'),
// skip: !Platform.isLinux,
); );
} }
}); });
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io' show Platform;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
...@@ -140,8 +138,6 @@ void main() { ...@@ -140,8 +138,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(painterKey), find.byKey(painterKey),
matchesSkiaGoldFile('card_theme.custom_shape.png'), matchesSkiaGoldFile('card_theme.custom_shape.png'),
// matchesGoldenFile('card_theme.custom_shape.png'),
// skip: !Platform.isLinux,
); );
}); });
} }
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io' show Platform;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
...@@ -133,8 +131,6 @@ void main() { ...@@ -133,8 +131,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(_painterKey), find.byKey(_painterKey),
matchesSkiaGoldFile('dialog_theme.dialog_with_custom_border.png'), matchesSkiaGoldFile('dialog_theme.dialog_with_custom_border.png'),
// matchesGoldenFile('dialog_theme.dialog_with_custom_border.png'),
// skip: !Platform.isLinux,
); );
}); });
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io';
import 'dart:math' as math; import 'dart:math' as math;
import 'dart:ui' show window; import 'dart:ui' show window;
...@@ -142,8 +141,6 @@ void main() { ...@@ -142,8 +141,6 @@ void main() {
await expectLater( await expectLater(
find.ancestor(of: buttonFinder, matching: find.byType(RepaintBoundary)).first, find.ancestor(of: buttonFinder, matching: find.byType(RepaintBoundary)).first,
matchesSkiaGoldFile('dropdown_test.default.png'), matchesSkiaGoldFile('dropdown_test.default.png'),
// matchesGoldenFile('dropdown_test.default.0.png'),
// skip: !Platform.isLinux,
); );
}); });
...@@ -156,8 +153,6 @@ void main() { ...@@ -156,8 +153,6 @@ void main() {
await expectLater( await expectLater(
find.ancestor(of: buttonFinder, matching: find.byType(RepaintBoundary)).first, find.ancestor(of: buttonFinder, matching: find.byType(RepaintBoundary)).first,
matchesSkiaGoldFile('dropdown_test.expanded.png'), matchesSkiaGoldFile('dropdown_test.expanded.png'),
// matchesGoldenFile('dropdown_test.expanded.0.png'),
// skip: !Platform.isLinux,
); );
}); });
......
...@@ -681,8 +681,6 @@ void main() { ...@@ -681,8 +681,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(key), find.byKey(key),
matchesSkiaGoldFile('floating_action_button_test.clip.png'), matchesSkiaGoldFile('floating_action_button_test.clip.png'),
// matchesGoldenFile('floating_action_button_test.clip.2.png'), // .clip.1.png is obsolete and can be removed
// skip: !Platform.isLinux,
); );
}); });
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:async'; import 'dart:async';
import 'dart:io' show Platform;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
...@@ -2021,19 +2020,14 @@ void main() { ...@@ -2021,19 +2020,14 @@ void main() {
await expectLater( await expectLater(
find.byType(InputDecorator), find.byType(InputDecorator),
matchesSkiaGoldFile('input_decorator.outline_icon_label.ltr.png'), matchesSkiaGoldFile('input_decorator.outline_icon_label.ltr.png'),
// matchesGoldenFile('input_decorator.outline_icon_label.ltr.png'),
// skip: !Platform.isLinux,
); );
await tester.pumpWidget(buildFrame(TextDirection.rtl)); await tester.pumpWidget(buildFrame(TextDirection.rtl));
await expectLater( await expectLater(
find.byType(InputDecorator), find.byType(InputDecorator),
matchesSkiaGoldFile('input_decorator.outline_icon_label.rtl.png'), matchesSkiaGoldFile('input_decorator.outline_icon_label.rtl.png'),
// matchesGoldenFile('input_decorator.outline_icon_label.rtl.png'),
// skip: !Platform.isLinux,
); );
}, },
// skip: !Platform.isLinux,
); );
testWidgets('InputDecorationTheme.toString()', (WidgetTester tester) async { testWidgets('InputDecorationTheme.toString()', (WidgetTester tester) async {
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io' show Platform;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/painting.dart'; import 'package:flutter/painting.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
...@@ -619,8 +617,6 @@ void main() { ...@@ -619,8 +617,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(painterKey), find.byKey(painterKey),
matchesSkiaGoldFile('material.border_paint_above.png'), matchesSkiaGoldFile('material.border_paint_above.png'),
// matchesGoldenFile('material.border_paint_above.png'),
// skip: !Platform.isLinux,
); );
}); });
...@@ -661,8 +657,6 @@ void main() { ...@@ -661,8 +657,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(painterKey), find.byKey(painterKey),
matchesSkiaGoldFile('material.border_paint_below.png'), matchesSkiaGoldFile('material.border_paint_below.png'),
// matchesGoldenFile('material.border_paint_below.png'),
// skip: !Platform.isLinux,
); );
}); });
}); });
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io' show Platform;
import 'dart:ui'; import 'dart:ui';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
...@@ -278,8 +277,6 @@ void main() { ...@@ -278,8 +277,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(painterKey), find.byKey(painterKey),
matchesSkiaGoldFile('radio.ink_ripple.png'), matchesSkiaGoldFile('radio.ink_ripple.png'),
// matchesGoldenFile('radio.ink_ripple.png'),
// skip: !Platform.isLinux,
); );
}); });
} }
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io' show Platform;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'; import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
...@@ -270,8 +268,6 @@ void main() { ...@@ -270,8 +268,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(_painterKey), find.byKey(_painterKey),
matchesSkiaGoldFile('tab_bar_theme.tab_indicator_size_tab.png'), matchesSkiaGoldFile('tab_bar_theme.tab_indicator_size_tab.png'),
// matchesGoldenFile('tab_bar_theme.tab_indicator_size_tab.png'),
// skip: !Platform.isLinux,
); );
}); });
...@@ -283,8 +279,6 @@ void main() { ...@@ -283,8 +279,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(_painterKey), find.byKey(_painterKey),
matchesSkiaGoldFile('tab_bar_theme.tab_indicator_size_label.png'), matchesSkiaGoldFile('tab_bar_theme.tab_indicator_size_label.png'),
// matchesGoldenFile('tab_bar_theme.tab_indicator_size_label.png'),
// skip: !Platform.isLinux,
); );
}); });
...@@ -301,8 +295,6 @@ void main() { ...@@ -301,8 +295,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(_painterKey), find.byKey(_painterKey),
matchesSkiaGoldFile('tab_bar_theme.custom_tab_indicator.png'), matchesSkiaGoldFile('tab_bar_theme.custom_tab_indicator.png'),
// matchesGoldenFile('tab_bar_theme.custom_tab_indicator.png'),
// skip: !Platform.isLinux,
); );
}); });
...@@ -319,8 +311,6 @@ void main() { ...@@ -319,8 +311,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(_painterKey), find.byKey(_painterKey),
matchesSkiaGoldFile('tab_bar_theme.beveled_rect_indicator.png'), matchesSkiaGoldFile('tab_bar_theme.beveled_rect_indicator.png'),
// matchesGoldenFile('tab_bar_theme.beveled_rect_indicator.png'),
// skip: !Platform.isLinux,
); );
}); });
} }
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io' show Platform;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/painting.dart'; import 'package:flutter/painting.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
...@@ -73,8 +72,6 @@ void main() { ...@@ -73,8 +72,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
matchesSkiaGoldFile('continuous_rectangle_border.golden_test_even_radii.png'), matchesSkiaGoldFile('continuous_rectangle_border.golden_test_even_radii.png'),
// matchesGoldenFile('continuous_rectangle_border.golden_test_even_radii.png'),
// skip: !Platform.isLinux,
); );
}); });
...@@ -96,8 +93,6 @@ void main() { ...@@ -96,8 +93,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
matchesSkiaGoldFile('continuous_rectangle_border.golden_test_varying_radii.png'), matchesSkiaGoldFile('continuous_rectangle_border.golden_test_varying_radii.png'),
// matchesGoldenFile('continuous_rectangle_border.golden_test_varying_radii.png'),
// skip: !Platform.isLinux,
); );
}); });
...@@ -116,8 +111,6 @@ void main() { ...@@ -116,8 +111,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
matchesSkiaGoldFile('continuous_rectangle_border.golden_test_large_radii.png'), matchesSkiaGoldFile('continuous_rectangle_border.golden_test_large_radii.png'),
// matchesGoldenFile('continuous_rectangle_border.golden_test_large_radii.png'),
// skip: !Platform.isLinux,
); );
}); });
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
import 'dart:io' show Platform;
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart'; import 'package:flutter_test/flutter_test.dart';
...@@ -52,10 +50,8 @@ void main() { ...@@ -52,10 +50,8 @@ void main() {
await expectLater( await expectLater(
find.byType(RichText), find.byType(RichText),
matchesSkiaGoldFile('localized_fonts.rich_text.styled_text_span.png'), matchesSkiaGoldFile('localized_fonts.rich_text.styled_text_span.png'),
// matchesGoldenFile('localized_fonts.rich_text.styled_text_span.png'),
); );
}, },
//skip: !Platform.isLinux,
); );
testWidgets( testWidgets(
...@@ -105,10 +101,8 @@ void main() { ...@@ -105,10 +101,8 @@ void main() {
await expectLater( await expectLater(
find.byType(Row), find.byType(Row),
matchesSkiaGoldFile('localized_fonts.text_ambient_locale.chars.png'), matchesSkiaGoldFile('localized_fonts.text_ambient_locale.chars.png'),
// matchesGoldenFile('localized_fonts.text_ambient_locale.chars.png'),
); );
}, },
// skip: !Platform.isLinux,
); );
testWidgets( testWidgets(
...@@ -150,10 +144,8 @@ void main() { ...@@ -150,10 +144,8 @@ void main() {
await expectLater( await expectLater(
find.byType(Row), find.byType(Row),
matchesSkiaGoldFile('localized_fonts.text_explicit_locale.chars.png'), matchesSkiaGoldFile('localized_fonts.text_explicit_locale.chars.png'),
// matchesGoldenFile('localized_fonts.text_explicit_locale.chars.png'),
); );
}, },
// skip: !Platform.isLinux,
); );
} }
...@@ -42,9 +42,7 @@ void main() { ...@@ -42,9 +42,7 @@ void main() {
); );
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('backdrop_filter_test.cull_rect.png') matchesSkiaGoldFile('backdrop_filter_test.cull_rect.png'),
// matchesGoldenFile('backdrop_filter_test.cull_rect.1.png'),
// skip: !Platform.isLinux,
); );
}); });
} }
...@@ -289,7 +289,6 @@ void main() { ...@@ -289,7 +289,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.ClipRect.png'), matchesSkiaGoldFile('clip.ClipRect.png'),
// matchesGoldenFile('clip.ClipRect.1.png'),
); );
}); });
...@@ -330,7 +329,6 @@ void main() { ...@@ -330,7 +329,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.ClipRectOverlay.png') matchesSkiaGoldFile('clip.ClipRectOverlay.png')
// matchesGoldenFile('clip.ClipRectOverlay.1.png'),
); );
}); });
...@@ -380,7 +378,6 @@ void main() { ...@@ -380,7 +378,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.ClipRRect.png'), matchesSkiaGoldFile('clip.ClipRRect.png'),
// matchesGoldenFile('clip.ClipRRect.1.png'),
); );
}); });
...@@ -424,7 +421,6 @@ void main() { ...@@ -424,7 +421,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.ClipOval.png'), matchesSkiaGoldFile('clip.ClipOval.png'),
// matchesGoldenFile('clip.ClipOval.1.png'),
); );
}); });
...@@ -473,7 +469,6 @@ void main() { ...@@ -473,7 +469,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.ClipPath.png'), matchesSkiaGoldFile('clip.ClipPath.png'),
// matchesGoldenFile('clip.ClipPath.1.png'),
); );
}); });
...@@ -519,7 +514,6 @@ void main() { ...@@ -519,7 +514,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.PhysicalModel.antiAlias.png'), matchesSkiaGoldFile('clip.PhysicalModel.antiAlias.png'),
// matchesGoldenFile('clip.PhysicalModel.antiAlias.1.png'),
); );
}); });
...@@ -528,7 +522,6 @@ void main() { ...@@ -528,7 +522,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.PhysicalModel.hardEdge.png'), matchesSkiaGoldFile('clip.PhysicalModel.hardEdge.png'),
// matchesGoldenFile('clip.PhysicalModel.hardEdge.1.png'),
); );
}); });
...@@ -539,7 +532,6 @@ void main() { ...@@ -539,7 +532,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.PhysicalModel.antiAliasWithSaveLayer.png'), matchesSkiaGoldFile('clip.PhysicalModel.antiAliasWithSaveLayer.png'),
// matchesGoldenFile('clip.PhysicalModel.antiAliasWithSaveLayer.png'),
); );
}); });
...@@ -582,7 +574,6 @@ void main() { ...@@ -582,7 +574,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.PhysicalModel.default.png'), matchesSkiaGoldFile('clip.PhysicalModel.default.png'),
// matchesGoldenFile('clip.PhysicalModel.default.1.png'),
); );
}); });
...@@ -632,7 +623,6 @@ void main() { ...@@ -632,7 +623,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.PhysicalShape.antiAlias.png'), matchesSkiaGoldFile('clip.PhysicalShape.antiAlias.png'),
// matchesGoldenFile('clip.PhysicalShape.antiAlias.1.png'),
); );
}); });
...@@ -641,7 +631,6 @@ void main() { ...@@ -641,7 +631,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.PhysicalShape.hardEdge.png'), matchesSkiaGoldFile('clip.PhysicalShape.hardEdge.png'),
// matchesGoldenFile('clip.PhysicalShape.hardEdge.1.png'),
); );
}); });
...@@ -650,7 +639,6 @@ void main() { ...@@ -650,7 +639,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.PhysicalShape.antiAliasWithSaveLayer.png'), matchesSkiaGoldFile('clip.PhysicalShape.antiAliasWithSaveLayer.png'),
// matchesGoldenFile('clip.PhysicalShape.antiAliasWithSaveLayer.png'),
); );
}); });
...@@ -697,7 +685,6 @@ void main() { ...@@ -697,7 +685,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('clip.PhysicalShape.default.png'), matchesSkiaGoldFile('clip.PhysicalShape.default.png'),
// matchesGoldenFile('clip.PhysicalShape.default.1.png'),
); );
}); });
......
...@@ -90,11 +90,8 @@ void main() { ...@@ -90,11 +90,8 @@ void main() {
await expectLater( await expectLater(
find.byKey(const ValueKey<int>(1)), find.byKey(const ValueKey<int>(1)),
matchesSkiaGoldFile('editable_text_test.0.png'), matchesSkiaGoldFile('editable_text_test.0.png'),
// matchesGoldenFile('editable_text_test.0.0.png'),
); );
}, },);
//skip: !Platform.isLinux
);
testWidgets('cursor layout has correct radius', (WidgetTester tester) async { testWidgets('cursor layout has correct radius', (WidgetTester tester) async {
final GlobalKey<EditableTextState> editableTextKey = GlobalKey<EditableTextState>(); final GlobalKey<EditableTextState> editableTextKey = GlobalKey<EditableTextState>();
...@@ -144,10 +141,8 @@ void main() { ...@@ -144,10 +141,8 @@ void main() {
await expectLater( await expectLater(
find.byKey(const ValueKey<int>(1)), find.byKey(const ValueKey<int>(1)),
matchesSkiaGoldFile('editable_text_test.1.png'), matchesSkiaGoldFile('editable_text_test.1.png'),
// matchesGoldenFile('editable_text_test.1.0.png'),
); );
}, //skip: !Platform.isLinux },);
);
testWidgets('Cursor animates on iOS', (WidgetTester tester) async { testWidgets('Cursor animates on iOS', (WidgetTester tester) async {
final Widget widget = MaterialApp( final Widget widget = MaterialApp(
......
...@@ -20,9 +20,7 @@ void main() { ...@@ -20,9 +20,7 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
matchesSkiaGoldFile('invert_colors_test.0.png') matchesSkiaGoldFile('invert_colors_test.0.png'),
// matchesGoldenFile('invert_colors_test.0.png'),
// skip: !Platform.isLinux,
); );
}); });
...@@ -41,8 +39,6 @@ void main() { ...@@ -41,8 +39,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
matchesSkiaGoldFile('invert_colors_test.1.png'), matchesSkiaGoldFile('invert_colors_test.1.png'),
// matchesGoldenFile('invert_colors_test.1.png'),
// skip: !Platform.isLinux,
); );
}); });
} }
......
...@@ -491,8 +491,6 @@ void main() { ...@@ -491,8 +491,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(const Key('list_wheel_scroll_view')), find.byKey(const Key('list_wheel_scroll_view')),
matchesSkiaGoldFile('list_wheel_scroll_view.center_child.magnified.png'), matchesSkiaGoldFile('list_wheel_scroll_view.center_child.magnified.png'),
// matchesGoldenFile('list_wheel_scroll_view.center_child.magnified.png'),
// skip: !Platform.isLinux,
); );
}); });
...@@ -547,8 +545,6 @@ void main() { ...@@ -547,8 +545,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(const Key('list_wheel_scroll_view')), find.byKey(const Key('list_wheel_scroll_view')),
matchesSkiaGoldFile('list_wheel_scroll_view.curved_wheel.left.png'), matchesSkiaGoldFile('list_wheel_scroll_view.curved_wheel.left.png'),
// matchesGoldenFile('list_wheel_scroll_view.curved_wheel.left.png'),
// skip: !Platform.isLinux,
); );
}); });
......
...@@ -178,8 +178,6 @@ void main() { ...@@ -178,8 +178,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('opacity_test.offset.png'), matchesSkiaGoldFile('opacity_test.offset.png'),
// matchesGoldenFile('opacity_test.offset.1.png'),
// skip: !Platform.isLinux,
); );
}); });
} }
...@@ -66,8 +66,6 @@ void main() { ...@@ -66,8 +66,6 @@ void main() {
await expectLater( await expectLater(
find.byKey(key), find.byKey(key),
matchesSkiaGoldFile('physical_model_overflow.png'), matchesSkiaGoldFile('physical_model_overflow.png'),
// matchesGoldenFile('physical_model_overflow.png'),
// skip: !Platform.isLinux,
); );
}); });
......
...@@ -24,16 +24,13 @@ void main() { ...@@ -24,16 +24,13 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('shadow.BoxDecoration.disabled.png'), matchesSkiaGoldFile('shadow.BoxDecoration.disabled.png'),
// matchesGoldenFile('shadow.BoxDecoration.disabled.png'),
); );
debugDisableShadows = false; debugDisableShadows = false;
tester.binding.reassembleApplication(); tester.binding.reassembleApplication();
await tester.pump(); await tester.pump();
// TODO(ianh): [May no longer apply] use the skip argument instead once that doesn't hang, https://github.com/dart-lang/test/issues/830
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('shadow.BoxDecoration.enabled.png'), matchesSkiaGoldFile('shadow.BoxDecoration.enabled.png'),
// matchesGoldenFile('shadow.BoxDecoration.enabled.png'),
); );
debugDisableShadows = true; debugDisableShadows = true;
}); });
...@@ -60,13 +57,10 @@ void main() { ...@@ -60,13 +57,10 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('shadow.ShapeDecoration.$elevation.png'), matchesSkiaGoldFile('shadow.ShapeDecoration.$elevation.png'),
// matchesGoldenFile('shadow.ShapeDecoration.$elevation.png'),
); );
} }
debugDisableShadows = true; debugDisableShadows = true;
}, },);
// skip: !Platform.isLinux
); // shadows render differently on different platforms
testWidgets('Shadows with PhysicalLayer', (WidgetTester tester) async { testWidgets('Shadows with PhysicalLayer', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -90,16 +84,13 @@ void main() { ...@@ -90,16 +84,13 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('shadow.PhysicalModel.disabled.0.png'), matchesSkiaGoldFile('shadow.PhysicalModel.disabled.0.png'),
// matchesGoldenFile('shadow.PhysicalModel.disabled.png'),
); );
debugDisableShadows = false; debugDisableShadows = false;
tester.binding.reassembleApplication(); tester.binding.reassembleApplication();
await tester.pump(); await tester.pump();
// TODO(ianh): [May no longer apply] use the skip argument instead once that doesn't hang, https://github.com/dart-lang/test/issues/830
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('shadow.PhysicalModel.enabled.png'), matchesSkiaGoldFile('shadow.PhysicalModel.enabled.png'),
// matchesGoldenFile('shadow.PhysicalModel.enabled.png'),
); );
debugDisableShadows = true; debugDisableShadows = true;
}); });
...@@ -130,11 +121,8 @@ void main() { ...@@ -130,11 +121,8 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('shadow.PhysicalModel.disabled.1.$elevation.png'), matchesSkiaGoldFile('shadow.PhysicalModel.disabled.1.$elevation.png'),
// matchesGoldenFile('shadow.PhysicalModel.disabled.png'),
); );
} }
debugDisableShadows = true; debugDisableShadows = true;
}, },);
// skip: !Platform.isLinux
);
} }
\ No newline at end of file
...@@ -30,7 +30,6 @@ void main() { ...@@ -30,7 +30,6 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('text_golden.Centered.png'), matchesSkiaGoldFile('text_golden.Centered.png'),
// matchesGoldenFile('text_golden.Centered.png'),
); );
await tester.pumpWidget( await tester.pumpWidget(
...@@ -55,11 +54,8 @@ void main() { ...@@ -55,11 +54,8 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('text_golden.Centered.wrap.png'), matchesSkiaGoldFile('text_golden.Centered.wrap.png'),
// matchesGoldenFile('text_golden.Centered.wrap.png'),
); );
}, },);
// skip: !Platform.isLinux
);
testWidgets('Text Foreground', (WidgetTester tester) async { testWidgets('Text Foreground', (WidgetTester tester) async {
...@@ -89,7 +85,6 @@ void main() { ...@@ -89,7 +85,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
matchesSkiaGoldFile('text_golden.Foreground.gradient.png'), matchesSkiaGoldFile('text_golden.Foreground.gradient.png'),
// matchesGoldenFile('text_golden.Foreground.gradient.png'),
); );
await tester.pumpWidget( await tester.pumpWidget(
...@@ -112,7 +107,6 @@ void main() { ...@@ -112,7 +107,6 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
matchesSkiaGoldFile('text_golden.Foreground.stroke.png'), matchesSkiaGoldFile('text_golden.Foreground.stroke.png'),
// matchesGoldenFile('text_golden.Foreground.stroke.png'),
); );
await tester.pumpWidget( await tester.pumpWidget(
...@@ -136,11 +130,8 @@ void main() { ...@@ -136,11 +130,8 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
matchesSkiaGoldFile('text_golden.Foreground.stroke_and_gradient.png'), matchesSkiaGoldFile('text_golden.Foreground.stroke_and_gradient.png'),
// matchesGoldenFile('text_golden.Foreground.stroke_and_gradient.png'),
); );
}, },);
// skip: !Platform.isLinux
);
// TODO(garyq): This test requires an update when the background // TODO(garyq): This test requires an update when the background
// drawing from the beginning of the line bug is fixed. The current // drawing from the beginning of the line bug is fixed. The current
...@@ -189,11 +180,8 @@ void main() { ...@@ -189,11 +180,8 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary), find.byType(RepaintBoundary),
matchesSkiaGoldFile('text_golden.Background.png'), matchesSkiaGoldFile('text_golden.Background.png'),
// matchesGoldenFile('text_golden.Background.png'),
); );
}, },);
// skip: !Platform.isLinux
);
testWidgets('Text Fade', (WidgetTester tester) async { testWidgets('Text Fade', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -228,11 +216,8 @@ void main() { ...@@ -228,11 +216,8 @@ void main() {
await expectLater( await expectLater(
find.byType(RepaintBoundary).first, find.byType(RepaintBoundary).first,
matchesSkiaGoldFile('text_golden.Fade.1.png'), matchesSkiaGoldFile('text_golden.Fade.1.png'),
// matchesGoldenFile('text_golden.Fade.1.png'),
); );
}, },);
// skip: !Platform.isLinux
);
testWidgets('Default Strut text', (WidgetTester tester) async { testWidgets('Default Strut text', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -256,12 +241,8 @@ void main() { ...@@ -256,12 +241,8 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('text_golden.StrutDefault.png'), matchesSkiaGoldFile('text_golden.StrutDefault.png'),
// matchesGoldenFile('text_golden.StrutDefault.png'),
); );
}, },);
// skip: true // Should only be on linux (skip: !Platform.isLinux).
// Disabled for now until font inconsistency is resolved.
);
testWidgets('Strut text 1', (WidgetTester tester) async { testWidgets('Strut text 1', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -287,11 +268,8 @@ void main() { ...@@ -287,11 +268,8 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('text_golden.Strut.1.png') matchesSkiaGoldFile('text_golden.Strut.1.png')
// matchesGoldenFile('text_golden.Strut.1.1.png'),
); );
}, },);
// skip: true // Should only be on linux (skip: !Platform.isLinux).
); // Disabled for now until font inconsistency is resolved.
testWidgets('Strut text 2', (WidgetTester tester) async { testWidgets('Strut text 2', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -318,11 +296,8 @@ void main() { ...@@ -318,11 +296,8 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('text_golden.Strut.2.png') matchesSkiaGoldFile('text_golden.Strut.2.png')
// matchesGoldenFile('text_golden.Strut.2.1.png'),
); );
}, },);
// skip: true // Should only be on linux (skip: !Platform.isLinux).
); // Disabled for now until font inconsistency is resolved.
testWidgets('Strut text rich', (WidgetTester tester) async { testWidgets('Strut text rich', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -372,11 +347,8 @@ void main() { ...@@ -372,11 +347,8 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('text_golden.Strut.3.png') matchesSkiaGoldFile('text_golden.Strut.3.png')
// matchesGoldenFile('text_golden.Strut.3.1.png'),
); );
}, },);
// skip: true // Should only be on linux (skip: !Platform.isLinux).
); // Disabled for now until font inconsistency is resolved.
testWidgets('Strut text font fallback', (WidgetTester tester) async { testWidgets('Strut text font fallback', (WidgetTester tester) async {
// Font Fallback // Font Fallback
...@@ -409,12 +381,9 @@ void main() { ...@@ -409,12 +381,9 @@ void main() {
); );
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('text_golden.Strut.4.png') matchesSkiaGoldFile('text_golden.Strut.4.png'),
// matchesGoldenFile('text_golden.Strut.4.1.png'),
); );
}, },);
// skip: true // Should only be on linux (skip: !Platform.isLinux).
); // Disabled for now until font inconsistency is resolved.
testWidgets('Strut text rich forceStrutHeight', (WidgetTester tester) async { testWidgets('Strut text rich forceStrutHeight', (WidgetTester tester) async {
await tester.pumpWidget( await tester.pumpWidget(
...@@ -463,12 +432,9 @@ void main() { ...@@ -463,12 +432,9 @@ void main() {
); );
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('text_golden.StrutForce.1.png') matchesSkiaGoldFile('text_golden.StrutForce.1.png'),
// matchesGoldenFile('text_golden.StrutForce.1.1.png'),
); );
}, },);
// skip: true // Should only be on linux (skip: !Platform.isLinux).
); // Disabled for now until font inconsistency is resolved.
testWidgets('Decoration thickness', (WidgetTester tester) async { testWidgets('Decoration thickness', (WidgetTester tester) async {
final TextDecoration allDecorations = TextDecoration.combine( final TextDecoration allDecorations = TextDecoration.combine(
...@@ -505,11 +471,8 @@ void main() { ...@@ -505,11 +471,8 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('text_golden.Decoration.1.png'), matchesSkiaGoldFile('text_golden.Decoration.1.png'),
// matchesGoldenFile('text_golden.Decoration.1.0.png'),
); );
}, },);
// skip: !Platform.isLinux
); // Coretext uses different thicknesses for decoration
testWidgets('Decoration thickness', (WidgetTester tester) async { testWidgets('Decoration thickness', (WidgetTester tester) async {
final TextDecoration allDecorations = TextDecoration.combine( final TextDecoration allDecorations = TextDecoration.combine(
...@@ -547,9 +510,6 @@ void main() { ...@@ -547,9 +510,6 @@ void main() {
await expectLater( await expectLater(
find.byType(Container), find.byType(Container),
matchesSkiaGoldFile('text_golden.DecorationThickness.1.png'), matchesSkiaGoldFile('text_golden.DecorationThickness.1.png'),
// matchesGoldenFile('text_golden.DecorationThickness.1.0.png'),
); );
}, },);
// skip: !Platform.isLinux
); // Coretext uses different thicknesses for decoration
} }
...@@ -1829,8 +1829,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1829,8 +1829,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
await expectLater( await expectLater(
layer.toImage(renderObject.semanticBounds.inflate(50.0)), layer.toImage(renderObject.semanticBounds.inflate(50.0)),
matchesSkiaGoldFile('inspector.repaint_boundary_margin.png'), matchesSkiaGoldFile('inspector.repaint_boundary_margin.png'),
// matchesGoldenFile('inspector.repaint_boundary_margin.png'),
// skip: !Platform.isLinux,
); );
// Regression test for how rendering with a pixel scale other than 1.0 // Regression test for how rendering with a pixel scale other than 1.0
...@@ -1841,8 +1839,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1841,8 +1839,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
pixelRatio: 0.5, pixelRatio: 0.5,
), ),
matchesSkiaGoldFile('inspector.repaint_boundary_margin_small.png'), matchesSkiaGoldFile('inspector.repaint_boundary_margin_small.png'),
// matchesGoldenFile('inspector.repaint_boundary_margin_small.png'),
// skip: !Platform.isLinux,
); );
await expectLater( await expectLater(
...@@ -1851,8 +1847,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1851,8 +1847,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
pixelRatio: 2.0, pixelRatio: 2.0,
), ),
matchesSkiaGoldFile('inspector.repaint_boundary_margin_large.png'), matchesSkiaGoldFile('inspector.repaint_boundary_margin_large.png'),
// matchesGoldenFile('inspector.repaint_boundary_margin_large.png'),
// skip: !Platform.isLinux,
); );
final Layer layerParent = layer.parent; final Layer layerParent = layer.parent;
...@@ -1868,8 +1862,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1868,8 +1862,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
height: 300.0, height: 300.0,
), ),
matchesSkiaGoldFile('inspector.repaint_boundary.png'), matchesSkiaGoldFile('inspector.repaint_boundary.png'),
// matchesGoldenFile('inspector.repaint_boundary.png'),
// skip: !Platform.isLinux,
); );
// Verify that taking a screenshot didn't change the layers associated with // Verify that taking a screenshot didn't change the layers associated with
...@@ -1887,8 +1879,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1887,8 +1879,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
margin: 50.0, margin: 50.0,
), ),
matchesSkiaGoldFile('inspector.repaint_boundary_margin.png'), matchesSkiaGoldFile('inspector.repaint_boundary_margin.png'),
// matchesGoldenFile('inspector.repaint_boundary_margin.png'),
// skip: !Platform.isLinux,
); );
// Verify that taking a screenshot didn't change the layers associated with // Verify that taking a screenshot didn't change the layers associated with
...@@ -1909,8 +1899,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1909,8 +1899,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
debugPaint: true, debugPaint: true,
), ),
matchesSkiaGoldFile('inspector.repaint_boundary_debugPaint.png'), matchesSkiaGoldFile('inspector.repaint_boundary_debugPaint.png'),
// matchesGoldenFile('inspector.repaint_boundary_debugPaint.png'),
// skip: !Platform.isLinux,
); );
// Verify that taking a screenshot with debug paint on did not change // Verify that taking a screenshot with debug paint on did not change
// the number of children the layer has. // the number of children the layer has.
...@@ -1921,8 +1909,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1921,8 +1909,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
await expectLater( await expectLater(
find.byType(RepaintBoundaryWithDebugPaint), find.byType(RepaintBoundaryWithDebugPaint),
matchesSkiaGoldFile('inspector.repaint_boundary.png'), matchesSkiaGoldFile('inspector.repaint_boundary.png'),
// matchesGoldenFile('inspector.repaint_boundary.png'),
// skip: !Platform.isLinux,
); );
expect(renderObject.debugLayer, equals(layer)); expect(renderObject.debugLayer, equals(layer));
...@@ -1936,8 +1922,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1936,8 +1922,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
height: 100.0, height: 100.0,
), ),
matchesSkiaGoldFile('inspector.container.png'), matchesSkiaGoldFile('inspector.container.png'),
// matchesGoldenFile('inspector.container.png'),
// skip: !Platform.isLinux,
); );
await expectLater( await expectLater(
...@@ -1948,8 +1932,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1948,8 +1932,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
debugPaint: true, debugPaint: true,
), ),
matchesSkiaGoldFile('inspector.container_debugPaint.png'), matchesSkiaGoldFile('inspector.container_debugPaint.png'),
// matchesGoldenFile('inspector.container_debugPaint.png'),
// skip: !Platform.isLinux,
); );
{ {
...@@ -1970,8 +1952,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1970,8 +1952,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
debugPaint: true, debugPaint: true,
), ),
matchesSkiaGoldFile('inspector.container_debugPaint.png'), matchesSkiaGoldFile('inspector.container_debugPaint.png'),
// matchesGoldenFile('inspector.container_debugPaint.png'),
// skip: !Platform.isLinux,
); );
expect(container.debugNeedsLayout, isFalse); expect(container.debugNeedsLayout, isFalse);
} }
...@@ -1984,8 +1964,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1984,8 +1964,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
height: 100.0, height: 100.0,
), ),
matchesSkiaGoldFile('inspector.container_small.png'), matchesSkiaGoldFile('inspector.container_small.png'),
// matchesGoldenFile('inspector.container_small.png'),
// skip: !Platform.isLinux,
); );
await expectLater( await expectLater(
...@@ -1996,8 +1974,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1996,8 +1974,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
maxPixelRatio: 3.0, maxPixelRatio: 3.0,
), ),
matchesSkiaGoldFile('inspector.container_large.png'), matchesSkiaGoldFile('inspector.container_large.png'),
// matchesGoldenFile('inspector.container_large.png'),
// skip: !Platform.isLinux,
); );
// This screenshot will show the clip rect debug paint but no other // This screenshot will show the clip rect debug paint but no other
...@@ -2010,8 +1986,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2010,8 +1986,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
debugPaint: true, debugPaint: true,
), ),
matchesSkiaGoldFile('inspector.clipRect_debugPaint.png'), matchesSkiaGoldFile('inspector.clipRect_debugPaint.png'),
// matchesGoldenFile('inspector.clipRect_debugPaint.png'),
// skip: !Platform.isLinux,
); );
final Element clipRect = find.byType(ClipRRect).evaluate().single; final Element clipRect = find.byType(ClipRRect).evaluate().single;
...@@ -2028,8 +2002,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2028,8 +2002,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
await expectLater( await expectLater(
clipRectScreenshot, clipRectScreenshot,
matchesSkiaGoldFile('inspector.clipRect_debugPaint_margin.png'), matchesSkiaGoldFile('inspector.clipRect_debugPaint_margin.png'),
// matchesGoldenFile('inspector.clipRect_debugPaint_margin.png'),
// skip: !Platform.isLinux,
); );
// Verify we get the same image if we go through the service extension // Verify we get the same image if we go through the service extension
...@@ -2069,8 +2041,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2069,8 +2041,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
debugPaint: true, debugPaint: true,
), ),
matchesSkiaGoldFile('inspector.padding_debugPaint.png'), matchesSkiaGoldFile('inspector.padding_debugPaint.png'),
// matchesGoldenFile('inspector.padding_debugPaint.png'),
// skip: !Platform.isLinux,
); );
// The bounds for this box crop its rendered content. // The bounds for this box crop its rendered content.
...@@ -2082,8 +2052,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2082,8 +2052,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
debugPaint: true, debugPaint: true,
), ),
matchesSkiaGoldFile('inspector.sizedBox_debugPaint.png'), matchesSkiaGoldFile('inspector.sizedBox_debugPaint.png'),
// matchesGoldenFile('inspector.sizedBox_debugPaint.png'),
// skip: !Platform.isLinux,
); );
// Verify that setting a margin includes the previously cropped content. // Verify that setting a margin includes the previously cropped content.
...@@ -2096,8 +2064,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2096,8 +2064,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
debugPaint: true, debugPaint: true,
), ),
matchesSkiaGoldFile('inspector.sizedBox_debugPaint_margin.png'), matchesSkiaGoldFile('inspector.sizedBox_debugPaint_margin.png'),
// matchesGoldenFile('inspector.sizedBox_debugPaint_margin.png'),
// skip: !Platform.isLinux,
); );
}); });
...@@ -2169,8 +2135,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2169,8 +2135,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
await expectLater( await expectLater(
find.byKey(mainStackKey), find.byKey(mainStackKey),
matchesSkiaGoldFile('inspector.composited_transform.only_offsets.png'), matchesSkiaGoldFile('inspector.composited_transform.only_offsets.png'),
// matchesGoldenFile('inspector.composited_transform.only_offsets.png'),
// skip: !Platform.isLinux,
); );
await expectLater( await expectLater(
...@@ -2180,15 +2144,11 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2180,15 +2144,11 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
height: 500.0, height: 500.0,
), ),
matchesSkiaGoldFile('inspector.composited_transform.only_offsets_follower.png'), matchesSkiaGoldFile('inspector.composited_transform.only_offsets_follower.png'),
// matchesGoldenFile('inspector.composited_transform.only_offsets_follower.png'),
// skip: !Platform.isLinux,
); );
await expectLater( await expectLater(
WidgetInspectorService.instance.screenshot(find.byType(Stack).evaluate().first, width: 300.0, height: 300.0), WidgetInspectorService.instance.screenshot(find.byType(Stack).evaluate().first, width: 300.0, height: 300.0),
matchesSkiaGoldFile('inspector.composited_transform.only_offsets_small.png'), matchesSkiaGoldFile('inspector.composited_transform.only_offsets_small.png'),
// matchesGoldenFile('inspector.composited_transform.only_offsets_small.1.png'),
// skip: !Platform.isLinux,
); );
await expectLater( await expectLater(
...@@ -2198,8 +2158,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2198,8 +2158,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
height: 500.0, height: 500.0,
), ),
matchesSkiaGoldFile('inspector.composited_transform.only_offsets_target.png'), matchesSkiaGoldFile('inspector.composited_transform.only_offsets_target.png'),
// matchesGoldenFile('inspector.composited_transform.only_offsets_target.png'),
// skip: !Platform.isLinux,
); );
}); });
...@@ -2272,8 +2230,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2272,8 +2230,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
await expectLater( await expectLater(
find.byKey(mainStackKey), find.byKey(mainStackKey),
matchesSkiaGoldFile('inspector.composited_transform.with_rotations.png'), matchesSkiaGoldFile('inspector.composited_transform.with_rotations.png'),
// matchesGoldenFile('inspector.composited_transform.with_rotations.png'),
// skip: !Platform.isLinux,
); );
await expectLater( await expectLater(
...@@ -2283,8 +2239,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2283,8 +2239,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
height: 500.0, height: 500.0,
), ),
matchesSkiaGoldFile('inspector.composited_transform.with_rotations_small.png'), matchesSkiaGoldFile('inspector.composited_transform.with_rotations_small.png'),
// matchesGoldenFile('inspector.composited_transform.with_rotations_small.png'),
// skip: !Platform.isLinux,
); );
await expectLater( await expectLater(
...@@ -2294,8 +2248,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2294,8 +2248,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
height: 500.0, height: 500.0,
), ),
matchesSkiaGoldFile('inspector.composited_transform.with_rotations_target.png'), matchesSkiaGoldFile('inspector.composited_transform.with_rotations_target.png'),
// matchesGoldenFile('inspector.composited_transform.with_rotations_target.png'),
// skip: !Platform.isLinux,
); );
await expectLater( await expectLater(
...@@ -2305,8 +2257,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -2305,8 +2257,6 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
height: 500.0, height: 500.0,
), ),
matchesSkiaGoldFile('inspector.composited_transform.with_rotations_follower.png'), matchesSkiaGoldFile('inspector.composited_transform.with_rotations_follower.png'),
// matchesGoldenFile('inspector.composited_transform.with_rotations_follower.png'),
// skip: !Platform.isLinux,
); );
// Make sure taking screenshots hasn't modified the positions of the // Make sure taking screenshots hasn't modified the positions of the
......
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