2023-06-10 23:55:42 +00:00
|
|
|
part of 'main.dart';
|
2022-04-28 21:23:38 +00:00
|
|
|
|
|
|
|
void handlesURLScheme() {
|
2022-04-29 11:39:28 +00:00
|
|
|
final shouldSkip = kIsWeb
|
|
|
|
? true
|
|
|
|
: ![
|
|
|
|
TargetPlatform.iOS,
|
|
|
|
TargetPlatform.macOS,
|
|
|
|
].contains(defaultTargetPlatform);
|
2022-04-28 21:23:38 +00:00
|
|
|
|
2023-06-10 23:55:42 +00:00
|
|
|
skippableTest('handlesURLScheme', () async {
|
2022-04-28 21:23:38 +00:00
|
|
|
expect(await InAppWebViewController.handlesURLScheme("http"), true);
|
|
|
|
expect(await InAppWebViewController.handlesURLScheme("https"), true);
|
|
|
|
}, skip: shouldSkip);
|
|
|
|
}
|