25 lines
628 B
Dart
Raw Normal View History

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