iosWebViewFix/example/integration_test/in_app_webview/handles_url_scheme.dart

18 lines
552 B
Dart
Raw Normal View History

2022-04-28 21:23:38 +00:00
import 'package:flutter/foundation.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:flutter_test/flutter_test.dart';
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
test('handlesURLScheme', () async {
expect(await InAppWebViewController.handlesURLScheme("http"), true);
expect(await InAppWebViewController.handlesURLScheme("https"), true);
}, skip: shouldSkip);
}