iosWebViewFix/example/integration_test/webview_flutter_test.dart

46 lines
2.1 KiB
Dart
Raw Normal View History

import 'package:flutter/foundation.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:integration_test/integration_test.dart';
2022-04-27 23:10:20 +00:00
import 'in_app_webview/main.dart' as in_app_webview_tests;
2022-10-11 14:19:36 +00:00
import 'find_interaction_controller/main.dart'
as find_interaction_controller_tests;
2022-05-02 10:52:10 +00:00
import 'service_worker_controller/main.dart' as service_worker_controller_tests;
import 'proxy_controller/main.dart' as proxy_controller_tests;
2022-04-28 21:23:38 +00:00
import 'headless_in_app_webview/main.dart' as headless_in_app_webview_tests;
import 'cookie_manager/main.dart' as cookie_manager_tests;
import 'in_app_browser/main.dart' as in_app_browser_tests;
import 'chrome_safari_browser/main.dart' as chrome_safari_browser_tests;
import 'in_app_localhost_server/main.dart' as in_app_localhost_server_tests;
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
2022-04-27 23:10:20 +00:00
2022-10-14 12:29:01 +00:00
if (!kIsWeb && defaultTargetPlatform == TargetPlatform.android) {
2022-04-27 00:23:59 +00:00
InAppWebViewController.setWebContentsDebuggingEnabled(true);
}
WebView.debugLoggingSettings.usePrint = true;
2022-10-06 14:43:19 +00:00
WebView.debugLoggingSettings.maxLogMessageLength = 7000;
InAppBrowser.debugLoggingSettings.usePrint = true;
2022-10-06 14:43:19 +00:00
InAppBrowser.debugLoggingSettings.maxLogMessageLength = 7000;
ChromeSafariBrowser.debugLoggingSettings.usePrint = true;
2022-10-06 14:43:19 +00:00
ChromeSafariBrowser.debugLoggingSettings.maxLogMessageLength = 7000;
WebAuthenticationSession.debugLoggingSettings.usePrint = true;
2022-10-06 14:43:19 +00:00
WebAuthenticationSession.debugLoggingSettings.maxLogMessageLength = 7000;
2022-10-08 12:19:35 +00:00
PullToRefreshController.debugLoggingSettings.usePrint = true;
PullToRefreshController.debugLoggingSettings.maxLogMessageLength = 7000;
FindInteractionController.debugLoggingSettings.usePrint = true;
FindInteractionController.debugLoggingSettings.maxLogMessageLength = 7000;
2022-04-27 23:10:20 +00:00
in_app_webview_tests.main();
2022-10-08 12:19:35 +00:00
find_interaction_controller_tests.main();
2022-05-02 10:52:10 +00:00
service_worker_controller_tests.main();
proxy_controller_tests.main();
2022-04-28 21:23:38 +00:00
headless_in_app_webview_tests.main();
cookie_manager_tests.main();
in_app_browser_tests.main();
chrome_safari_browser_tests.main();
in_app_localhost_server_tests.main();
}