@@ -646,12 +646,12 @@ void registerTests(String groupName, TestRunnerCallback test) {
646
646
final manyPrimitives = await manyPrimitivesResult.future;
647
647
expect (manyPrimitives, - 1 + 3 + 3.14 .toInt () + 1 );
648
648
649
+ // Running garbage collection does not work on Android. Skipping this
650
+ // test on Android.
649
651
// Currently we have one implementation of the interface.
650
652
expect (MyInterface .$impls, hasLength (1 ), skip: Platform .isAndroid);
651
653
myInterface.release ();
652
654
if (! Platform .isAndroid) {
653
- // Running garbage collection does not work on Android. Skipping this
654
- // test for android.
655
655
_runJavaGC ();
656
656
await _waitUntil (() => MyInterface .$impls.isEmpty);
657
657
expect (MyInterface .$impls, isEmpty);
@@ -691,12 +691,12 @@ void registerTests(String groupName, TestRunnerCallback test) {
691
691
);
692
692
expect (myInterface.manyPrimitives (1 , true , 3 , 4 ), 42 );
693
693
694
+ // Running garbage collection does not work on Android. Skipping this
695
+ // test on Android.
694
696
expect (MyInterface .$impls, hasLength (1 ), skip: Platform .isAndroid);
695
697
expect (MyRunnable .$impls, hasLength (1 ), skip: Platform .isAndroid);
696
698
myInterface.release ();
697
699
if (! Platform .isAndroid) {
698
- // Running garbage collection does not work on Android. Skipping this
699
- // test for android.
700
700
_runJavaGC ();
701
701
await _waitUntil (() => MyInterface .$impls.isEmpty);
702
702
// Since the interface is now deleted, the cleaner must signal to Dart
@@ -742,12 +742,12 @@ void registerTests(String groupName, TestRunnerCallback test) {
742
742
// listener, it will work.
743
743
runner.runOnAnotherThreadAndJoin ();
744
744
await completer.future;
745
+ // Running garbage collection does not work on Android. Skipping
746
+ // this test on Android.
745
747
expect (MyRunnable .$impls, hasLength (1 ), skip: Platform .isAndroid);
746
748
runnable.release ();
747
749
runner.release ();
748
750
if (! Platform .isAndroid) {
749
- // Running garbage collection does not work on Android. Skipping
750
- // this test for android.
751
751
_runJavaGC ();
752
752
await _waitUntil (() => MyInterface .$impls.isEmpty);
753
753
// Since the interface is now deleted, the cleaner must signal to
@@ -762,11 +762,11 @@ void registerTests(String groupName, TestRunnerCallback test) {
762
762
expect (runnable != runnable, false );
763
763
expect (runnable.hashCode, runnable.hashCode);
764
764
expect (runnable.toString (), runnable.toString ());
765
+ // Running garbage collection does not work on Android. Skipping
766
+ // this test on Android.
765
767
expect (MyRunnable .$impls, hasLength (1 ), skip: Platform .isAndroid);
766
768
runnable.release ();
767
769
if (! Platform .isAndroid) {
768
- // Running garbage collection does not work on Android. Skipping
769
- // this test for android.
770
770
_runJavaGC ();
771
771
await _waitUntil (() => MyInterface .$impls.isEmpty);
772
772
expect (MyRunnable .$impls, isEmpty);
0 commit comments