Commit 7defaca9 authored by Amir Hardon's avatar Amir Hardon Committed by amirh

fix formatting for test/widgets/platform_view_test.dart

parent ccaa0636
......@@ -23,15 +23,15 @@ void main() {
width: 200.0,
height: 100.0,
child: AndroidView(viewType: 'webview'),
)
)
),
),
);
expect(
viewsController.views,
unorderedEquals(<FakePlatformView>[
new FakePlatformView(currentViewId + 1, 'webview', const Size(200.0, 100.0))
])
]),
);
});
......@@ -45,8 +45,8 @@ void main() {
width: 200.0,
height: 100.0,
child: AndroidView(viewType: 'webview'),
)
)
),
),
);
await tester.pumpWidget(
......@@ -55,15 +55,15 @@ void main() {
width: 400.0,
height: 200.0,
child: AndroidView(viewType: 'webview'),
)
)
),
),
);
expect(
viewsController.views,
unorderedEquals(<FakePlatformView>[
new FakePlatformView(currentViewId + 1, 'webview', const Size(400.0, 200.0))
])
]),
);
});
......@@ -78,8 +78,8 @@ void main() {
width: 200.0,
height: 100.0,
child: AndroidView(viewType: 'webview'),
)
)
),
),
);
await tester.pumpWidget(
......@@ -88,15 +88,15 @@ void main() {
width: 200.0,
height: 100.0,
child: AndroidView(viewType: 'maps'),
)
)
),
),
);
expect(
viewsController.views,
unorderedEquals(<FakePlatformView>[
new FakePlatformView(currentViewId + 2, 'maps', const Size(200.0, 100.0))
])
]),
);
});
......@@ -109,8 +109,8 @@ void main() {
width: 200.0,
height: 100.0,
child: AndroidView(viewType: 'webview'),
)
)
),
),
);
await tester.pumpWidget(
......@@ -118,8 +118,8 @@ void main() {
child: SizedBox(
width: 200.0,
height: 100.0,
)
)
),
),
);
expect(
......@@ -139,8 +139,8 @@ void main() {
width: 200.0,
height: 100.0,
child: new AndroidView(viewType: 'webview', key: key),
)
)
),
),
);
await tester.pumpWidget(
......@@ -159,7 +159,7 @@ void main() {
viewsController.views,
unorderedEquals(<FakePlatformView>[
new FakePlatformView(currentViewId + 1, 'webview', const Size(200.0, 100.0))
])
]),
);
});
......@@ -174,8 +174,8 @@ void main() {
width: 200.0,
height: 100.0,
child: AndroidView(viewType: 'webview'),
)
)
),
),
);
final TestGesture gesture = await tester.startGesture(const Offset(50.0, 50.0));
......@@ -186,7 +186,7 @@ void main() {
orderedEquals(<FakeMotionEvent> [
const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(50.0, 50.0)]),
const FakeMotionEvent(AndroidViewController.kActionUp, <int> [0], <Offset> [Offset(50.0, 50.0)]),
])
]),
);
});
......@@ -213,7 +213,7 @@ void main() {
viewType: 'webview',
hitTestBehavior: PlatformViewHitTestBehavior.transparent,
),
)
),
),
],
),
......@@ -255,7 +255,7 @@ void main() {
viewType: 'webview',
hitTestBehavior: PlatformViewHitTestBehavior.translucent,
),
)
),
),
],
),
......@@ -268,7 +268,7 @@ void main() {
viewsController.motionEvents[currentViewId + 1],
orderedEquals(<FakeMotionEvent> [
const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(50.0, 50.0)]),
])
]),
);
expect(
numPointerDownsOnParent,
......@@ -299,7 +299,7 @@ void main() {
viewType: 'webview',
hitTestBehavior: PlatformViewHitTestBehavior.opaque,
),
)
),
),
],
),
......@@ -312,7 +312,7 @@ void main() {
viewsController.motionEvents[currentViewId + 1],
orderedEquals(<FakeMotionEvent> [
const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(50.0, 50.0)]),
])
]),
);
expect(
numPointerDownsOnParent,
......@@ -335,7 +335,7 @@ void main() {
child: AndroidView(viewType: 'webview'),
),
),
)
),
);
final TestGesture gesture = await tester.startGesture(const Offset(50.0, 50.0));
......@@ -346,7 +346,7 @@ void main() {
orderedEquals(<FakeMotionEvent> [
const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(40.0, 40.0)]),
const FakeMotionEvent(AndroidViewController.kActionUp, <int> [0], <Offset> [Offset(40.0, 40.0)]),
])
]),
);
});
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment