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