@@ -784,7 +784,7 @@ void main() {
784
784
ProcessManager : () => processManager,
785
785
}));
786
786
787
- test ('Generated service worker is empty with none-strategy' , () {
787
+ test ('Generated service worker is empty with none-strategy' , () => testbed. run (() {
788
788
final String fileGeneratorsPath =
789
789
environment.artifacts.getArtifactPath (Artifact .flutterToolsFileGenerators);
790
790
final String result = generateServiceWorker (
@@ -795,9 +795,9 @@ void main() {
795
795
);
796
796
797
797
expect (result, '' );
798
- });
798
+ })) ;
799
799
800
- test ('Generated service worker correctly inlines file hashes' , () {
800
+ test ('Generated service worker correctly inlines file hashes' , () => testbed. run (() {
801
801
final String fileGeneratorsPath =
802
802
environment.artifacts.getArtifactPath (Artifact .flutterToolsFileGenerators);
803
803
final String result = generateServiceWorker (
@@ -808,9 +808,9 @@ void main() {
808
808
);
809
809
810
810
expect (result, contains ('{"/foo": "abcd"};' ));
811
- });
811
+ })) ;
812
812
813
- test ('Generated service worker includes core files' , () {
813
+ test ('Generated service worker includes core files' , () => testbed. run (() {
814
814
final String fileGeneratorsPath =
815
815
environment.artifacts.getArtifactPath (Artifact .flutterToolsFileGenerators);
816
816
final String result = generateServiceWorker (
@@ -821,7 +821,7 @@ void main() {
821
821
);
822
822
823
823
expect (result, contains ('"foo",\n "bar"' ));
824
- });
824
+ })) ;
825
825
826
826
test ('WebServiceWorker generates a service_worker for a web resource folder' , () => testbed.run (() async {
827
827
environment.outputDir.childDirectory ('a' ).childFile ('a.txt' )
@@ -874,7 +874,7 @@ void main() {
874
874
contains ('"main.dart.js"' ));
875
875
}));
876
876
877
- test ('flutter.js sanity checks' , () {
877
+ test ('flutter.js sanity checks' , () => testbed. run (() {
878
878
final String fileGeneratorsPath = environment.artifacts
879
879
.getArtifactPath (Artifact .flutterToolsFileGenerators);
880
880
final String flutterJsContents =
@@ -887,7 +887,7 @@ void main() {
887
887
expect (flutterJsContents, contains ('const baseUri = ' ));
888
888
expect (flutterJsContents, contains ('document.querySelector("base")' ));
889
889
expect (flutterJsContents, contains ('.getAttribute("href")' ));
890
- });
890
+ })) ;
891
891
892
892
test ('flutter.js is not dynamically generated' , () => testbed.run (() async {
893
893
globals.fs.file ('bin/cache/flutter_web_sdk/canvaskit/foo' )
0 commit comments