|
12 | 12 | import android.view.MotionEvent;
|
13 | 13 | import android.view.View;
|
14 | 14 | import io.flutter.embedding.android.MotionEventTracker;
|
15 |
| -import java.util.Collections; |
| 15 | +import java.util.Arrays; |
| 16 | +import org.junit.Ignore; |
16 | 17 | import org.junit.Test;
|
17 | 18 | import org.junit.runner.RunWith;
|
18 | 19 | import org.robolectric.RobolectricTestRunner;
|
|
22 | 23 | @Config(manifest = Config.NONE)
|
23 | 24 | @RunWith(RobolectricTestRunner.class)
|
24 | 25 | public class PlatformViewsControllerTest {
|
| 26 | + |
| 27 | + @Ignore |
25 | 28 | @Test
|
26 | 29 | public void itNotifiesVirtualDisplayControllersOfViewAttachmentAndDetachment() {
|
27 | 30 | // Setup test structure.
|
@@ -64,6 +67,7 @@ public void itNotifiesVirtualDisplayControllersOfViewAttachmentAndDetachment() {
|
64 | 67 | verify(fakeVdController2, times(1)).onFlutterViewDetached();
|
65 | 68 | }
|
66 | 69 |
|
| 70 | + @Ignore |
67 | 71 | @Test
|
68 | 72 | public void itCancelsOldPresentationOnResize() {
|
69 | 73 | // Setup test structure.
|
@@ -110,9 +114,9 @@ public void itUsesActionEventTypeFromFrameworkEventForVirtualDisplays() {
|
110 | 114 | original.getDownTime(),
|
111 | 115 | original.getEventTime(),
|
112 | 116 | 2, // action
|
113 |
| - 0, // pointerCount |
114 |
| - Collections.emptyList(), |
115 |
| - Collections.emptyList(), |
| 117 | + 1, // pointerCount |
| 118 | + Arrays.asList(Arrays.asList(0, 0)), // pointer properties |
| 119 | + Arrays.asList(Arrays.asList(0., 1., 2., 3., 4., 5., 6., 7., 8.)), // pointer coords |
116 | 120 | original.getMetaState(),
|
117 | 121 | original.getButtonState(),
|
118 | 122 | original.getXPrecision(),
|
@@ -158,9 +162,9 @@ public void itUsesActionEventTypeFromMotionEventForHybridPlatformViews() {
|
158 | 162 | original.getDownTime(),
|
159 | 163 | original.getEventTime(),
|
160 | 164 | 2, // action
|
161 |
| - 0, // pointerCount |
162 |
| - Collections.emptyList(), |
163 |
| - Collections.emptyList(), |
| 165 | + 1, // pointerCount |
| 166 | + Arrays.asList(Arrays.asList(0, 0)), // pointer properties |
| 167 | + Arrays.asList(Arrays.asList(0., 1., 2., 3., 4., 5., 6., 7., 8.)), // pointer coords |
164 | 168 | original.getMetaState(),
|
165 | 169 | original.getButtonState(),
|
166 | 170 | original.getXPrecision(),
|
|
0 commit comments