Commit abb555fe authored by Kate Lovett's avatar Kate Lovett

Modified platform specific golden file test.

parent 04ad0ffa
...@@ -1999,9 +1999,10 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService { ...@@ -1999,9 +1999,10 @@ class TestWidgetInspectorService extends Object with WidgetInspectorService {
); );
// Add a margin so that the clip icon shows up in the screenshot. // Add a margin so that the clip icon shows up in the screenshot.
// This golden image is platform dependent due to the clip icon. // This golden image is platform dependent due to the clip icon.
final String platform = Platform.operatingSystem;
await expectLater( await expectLater(
clipRectScreenshot, 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 // Verify we get the same image if we go through the service extension
......
...@@ -189,7 +189,7 @@ class SkiaGoldClient { ...@@ -189,7 +189,7 @@ class SkiaGoldClient {
Future<String> _getCommitHash() async { Future<String> _getCommitHash() async {
// TODO(katelovett): Remove after pre-commit tests can be ingested by Skia Gold // TODO(katelovett): Remove after pre-commit tests can be ingested by Skia Gold
return 'd4e4726ac262b9f78b002b696f915f552fed3fc8'; return 'e51947241b37790a9e4e33bfdef59aaa9b930851';
// if (!flutterRoot.existsSync()) { // if (!flutterRoot.existsSync()) {
// return null; // return null;
// } else { // } else {
......
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