Unverified Commit 19901f67 authored by Darren Austin's avatar Darren Austin Committed by GitHub

Fix a misuse of matchesGoldenFile() in the physical_model_test. (#30141)

Fixed a misuse of matchesGoldenFile() in the physical_model_test so that it correctly reports a failed test on Linux (and skips the other platforms).
parent 1123b714
......@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'dart:io' show Platform;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:flutter/widgets.dart';
......@@ -61,6 +63,10 @@ void main() {
);
expect(tester.takeException(), startsWith('A RenderFlex overflowed by '));
expect(find.byKey(key), matchesGoldenFile('physical_model_overflow.png'));
await expectLater(
find.byKey(key),
matchesGoldenFile('physical_model_overflow.png'),
skip: !Platform.isLinux,
);
});
}
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