Modified platform specific golden file test.

This commit is contained in:
Kate Lovett 2019-04-25 15:50:53 -07:00
parent 04ad0ffa1e
commit abb555fe94
2 changed files with 3 additions and 2 deletions

View file

@ -1999,9 +1999,10 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
);
// Add a margin so that the clip icon shows up in the screenshot.
// This golden image is platform dependent due to the clip icon.
final String platform = Platform.operatingSystem;
await expectLater(
clipRectScreenshot,
matchesSkiaGoldFile('inspector.clipRect_debugPaint_margin.png'),
matchesSkiaGoldFile('inspector.clipRect_debugPaint_margin.$platform.png'),
);
// Verify we get the same image if we go through the service extension

View file

@ -189,7 +189,7 @@ class SkiaGoldClient {
Future<String> _getCommitHash() async {
// TODO(katelovett): Remove after pre-commit tests can be ingested by Skia Gold
return 'd4e4726ac262b9f78b002b696f915f552fed3fc8';
return 'e51947241b37790a9e4e33bfdef59aaa9b930851';
// if (!flutterRoot.existsSync()) {
// return null;
// } else {