Skip to content

Commit

Permalink
skip goldens in linux
Browse files Browse the repository at this point in the history
  • Loading branch information
coreysprague committed Mar 30, 2020
1 parent 0c1242d commit 7fa8d14
Showing 1 changed file with 33 additions and 23 deletions.
56 changes: 33 additions & 23 deletions packages/golden_toolkit/test/multi_screen_golden_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,22 @@ Future<void> main() async {
color: Colors.white,
child: SafeArea(child: Container(color: Colors.blue))),
);
await multiScreenGolden(tester, 'safe_area', devices: [
const Device(
name: 'no_safe_area',
size: Size(200, 200),
),
const Device(
name: 'safe_area',
size: Size(200, 200),
safeArea: EdgeInsets.fromLTRB(5, 10, 15, 20),
)
]);
await multiScreenGolden(
tester,
'safe_area',
devices: [
const Device(
name: 'no_safe_area',
size: Size(200, 200),
),
const Device(
name: 'safe_area',
size: Size(200, 200),
safeArea: EdgeInsets.fromLTRB(5, 10, 15, 20),
)
],
skip: !Platform.isMacOS,
);
});

testGoldens('Platform Brightness Test', (tester) async {
Expand All @@ -85,18 +90,23 @@ Future<void> main() async {
),
),
);
await multiScreenGolden(tester, 'brightness', devices: [
const Device(
name: 'light',
size: Size(200, 200),
brightness: Brightness.light,
),
const Device(
name: 'dark',
size: Size(200, 200),
brightness: Brightness.dark,
)
]);
await multiScreenGolden(
tester,
'brightness',
devices: [
const Device(
name: 'light',
size: Size(200, 200),
brightness: Brightness.light,
),
const Device(
name: 'dark',
size: Size(200, 200),
brightness: Brightness.dark,
)
],
skip: !Platform.isMacOS,
);
});
});
});
Expand Down

0 comments on commit 7fa8d14

Please sign in to comment.