2023-06-10 23:55:42 +00:00
|
|
|
import 'dart:async';
|
|
|
|
|
2022-04-30 19:22:31 +00:00
|
|
|
import 'package:flutter/foundation.dart';
|
2023-06-10 23:55:42 +00:00
|
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
|
2022-04-28 21:23:38 +00:00
|
|
|
import 'package:flutter_test/flutter_test.dart';
|
2023-06-10 23:55:42 +00:00
|
|
|
import '../constants.dart';
|
|
|
|
import '../util.dart';
|
2022-04-28 21:23:38 +00:00
|
|
|
|
2023-06-10 23:55:42 +00:00
|
|
|
part 'set_service_worker_client.dart';
|
|
|
|
part 'should_intercept_request.dart';
|
2022-04-28 21:23:38 +00:00
|
|
|
|
|
|
|
void main() {
|
2022-10-31 01:09:00 +00:00
|
|
|
final shouldSkip = kIsWeb
|
|
|
|
? true
|
|
|
|
: ![
|
2022-11-02 14:08:44 +00:00
|
|
|
TargetPlatform.android,
|
|
|
|
].contains(defaultTargetPlatform);
|
2022-04-30 19:22:31 +00:00
|
|
|
|
2023-06-10 23:55:42 +00:00
|
|
|
skippableGroup('Service Worker Controller', () {
|
2022-04-28 21:23:38 +00:00
|
|
|
shouldInterceptRequest();
|
|
|
|
setServiceWorkerClient();
|
2022-04-30 19:22:31 +00:00
|
|
|
}, skip: shouldSkip);
|
2022-10-11 14:19:36 +00:00
|
|
|
}
|