Skip to content

Commit ec0dc14

Browse files
committed
adds missing test
1 parent d25ca41 commit ec0dc14

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/url_launcher/url_launcher/test/src/legacy_api_test.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,14 @@ void main() {
229229
throwsA(isA<PlatformException>()));
230230
});
231231

232+
test('cannot send e-mail with forceSafariVC: false and forceWebView: true',
233+
() async {
234+
expect(
235+
() async => launch('mailto:[email protected]?subject=Hello',
236+
forceSafariVC: false, forceWebView: true),
237+
throwsA(isA<PlatformException>()));
238+
});
239+
232240
test('controls system UI when changing statusBarBrightness', () async {
233241
mock
234242
..setLaunchExpectations(

0 commit comments

Comments
 (0)