Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use pumpMap for getStyleError test.
  • Loading branch information
ditman committed Feb 24, 2024
commit 1de84dbe578770227590944e8bc33bb35fc0589f
Original file line number Diff line number Diff line change
Expand Up @@ -454,17 +454,17 @@ void runTests() {
final Completer<GoogleMapController> controllerCompleter =
Completer<GoogleMapController>();

await tester.pumpWidget(Directionality(
textDirection: TextDirection.ltr,
child: GoogleMap(
await pumpMap(
tester,
GoogleMap(
key: key,
initialCameraPosition: kInitialCameraPosition,
style: '[[[this is an invalid style',
onMapCreated: (GoogleMapController controller) {
controllerCompleter.complete(controller);
},
),
));
);

final GoogleMapController controller = await controllerCompleter.future;
final String? error = await controller.getStyleError();
Expand Down