Skip to content

Commit 6154f75

Browse files
Fix an ordering dependency in the services/system_chrome_test.dart test suite (#185086)
The "SystemChrome overlay style test" assumed that the overlay style was not set to SystemUiOverlayStyle.light at the start of the test. That may not be the case if other tests previously modified that state. Fixes #185085
1 parent ab21ec8 commit 6154f75

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎packages/flutter/test/services/system_chrome_test.dart‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ void main() {
2222
},
2323
);
2424

25+
// Start with the overlay style set to dark mode.
26+
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark);
27+
await tester.idle();
28+
log.clear();
29+
2530
// The first call is a cache miss and will queue a microtask
2631
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.light);
2732
expect(tester.binding.microtaskCount, equals(1));

0 commit comments

Comments
 (0)