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() { ...@@ -23,15 +23,15 @@ void main() {
width: 200.0, width: 200.0,
height: 100.0, height: 100.0,
child: AndroidView(viewType: 'webview'), child: AndroidView(viewType: 'webview'),
) ),
) ),
); );
expect( expect(
viewsController.views, viewsController.views,
unorderedEquals(<FakePlatformView>[ unorderedEquals(<FakePlatformView>[
new FakePlatformView(currentViewId + 1, 'webview', const Size(200.0, 100.0)) new FakePlatformView(currentViewId + 1, 'webview', const Size(200.0, 100.0))
]) ]),
); );
}); });
...@@ -45,8 +45,8 @@ void main() { ...@@ -45,8 +45,8 @@ void main() {
width: 200.0, width: 200.0,
height: 100.0, height: 100.0,
child: AndroidView(viewType: 'webview'), child: AndroidView(viewType: 'webview'),
) ),
) ),
); );
await tester.pumpWidget( await tester.pumpWidget(
...@@ -55,15 +55,15 @@ void main() { ...@@ -55,15 +55,15 @@ void main() {
width: 400.0, width: 400.0,
height: 200.0, height: 200.0,
child: AndroidView(viewType: 'webview'), child: AndroidView(viewType: 'webview'),
) ),
) ),
); );
expect( expect(
viewsController.views, viewsController.views,
unorderedEquals(<FakePlatformView>[ unorderedEquals(<FakePlatformView>[
new FakePlatformView(currentViewId + 1, 'webview', const Size(400.0, 200.0)) new FakePlatformView(currentViewId + 1, 'webview', const Size(400.0, 200.0))
]) ]),
); );
}); });
...@@ -78,8 +78,8 @@ void main() { ...@@ -78,8 +78,8 @@ void main() {
width: 200.0, width: 200.0,
height: 100.0, height: 100.0,
child: AndroidView(viewType: 'webview'), child: AndroidView(viewType: 'webview'),
) ),
) ),
); );
await tester.pumpWidget( await tester.pumpWidget(
...@@ -88,15 +88,15 @@ void main() { ...@@ -88,15 +88,15 @@ void main() {
width: 200.0, width: 200.0,
height: 100.0, height: 100.0,
child: AndroidView(viewType: 'maps'), child: AndroidView(viewType: 'maps'),
) ),
) ),
); );
expect( expect(
viewsController.views, viewsController.views,
unorderedEquals(<FakePlatformView>[ unorderedEquals(<FakePlatformView>[
new FakePlatformView(currentViewId + 2, 'maps', const Size(200.0, 100.0)) new FakePlatformView(currentViewId + 2, 'maps', const Size(200.0, 100.0))
]) ]),
); );
}); });
...@@ -109,8 +109,8 @@ void main() { ...@@ -109,8 +109,8 @@ void main() {
width: 200.0, width: 200.0,
height: 100.0, height: 100.0,
child: AndroidView(viewType: 'webview'), child: AndroidView(viewType: 'webview'),
) ),
) ),
); );
await tester.pumpWidget( await tester.pumpWidget(
...@@ -118,8 +118,8 @@ void main() { ...@@ -118,8 +118,8 @@ void main() {
child: SizedBox( child: SizedBox(
width: 200.0, width: 200.0,
height: 100.0, height: 100.0,
) ),
) ),
); );
expect( expect(
...@@ -139,8 +139,8 @@ void main() { ...@@ -139,8 +139,8 @@ void main() {
width: 200.0, width: 200.0,
height: 100.0, height: 100.0,
child: new AndroidView(viewType: 'webview', key: key), child: new AndroidView(viewType: 'webview', key: key),
) ),
) ),
); );
await tester.pumpWidget( await tester.pumpWidget(
...@@ -159,7 +159,7 @@ void main() { ...@@ -159,7 +159,7 @@ void main() {
viewsController.views, viewsController.views,
unorderedEquals(<FakePlatformView>[ unorderedEquals(<FakePlatformView>[
new FakePlatformView(currentViewId + 1, 'webview', const Size(200.0, 100.0)) new FakePlatformView(currentViewId + 1, 'webview', const Size(200.0, 100.0))
]) ]),
); );
}); });
...@@ -174,8 +174,8 @@ void main() { ...@@ -174,8 +174,8 @@ void main() {
width: 200.0, width: 200.0,
height: 100.0, height: 100.0,
child: AndroidView(viewType: 'webview'), child: AndroidView(viewType: 'webview'),
) ),
) ),
); );
final TestGesture gesture = await tester.startGesture(const Offset(50.0, 50.0)); final TestGesture gesture = await tester.startGesture(const Offset(50.0, 50.0));
...@@ -186,7 +186,7 @@ void main() { ...@@ -186,7 +186,7 @@ void main() {
orderedEquals(<FakeMotionEvent> [ orderedEquals(<FakeMotionEvent> [
const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(50.0, 50.0)]), const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(50.0, 50.0)]),
const FakeMotionEvent(AndroidViewController.kActionUp, <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() { ...@@ -213,7 +213,7 @@ void main() {
viewType: 'webview', viewType: 'webview',
hitTestBehavior: PlatformViewHitTestBehavior.transparent, hitTestBehavior: PlatformViewHitTestBehavior.transparent,
), ),
) ),
), ),
], ],
), ),
...@@ -255,7 +255,7 @@ void main() { ...@@ -255,7 +255,7 @@ void main() {
viewType: 'webview', viewType: 'webview',
hitTestBehavior: PlatformViewHitTestBehavior.translucent, hitTestBehavior: PlatformViewHitTestBehavior.translucent,
), ),
) ),
), ),
], ],
), ),
...@@ -268,7 +268,7 @@ void main() { ...@@ -268,7 +268,7 @@ void main() {
viewsController.motionEvents[currentViewId + 1], viewsController.motionEvents[currentViewId + 1],
orderedEquals(<FakeMotionEvent> [ orderedEquals(<FakeMotionEvent> [
const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(50.0, 50.0)]), const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(50.0, 50.0)]),
]) ]),
); );
expect( expect(
numPointerDownsOnParent, numPointerDownsOnParent,
...@@ -299,7 +299,7 @@ void main() { ...@@ -299,7 +299,7 @@ void main() {
viewType: 'webview', viewType: 'webview',
hitTestBehavior: PlatformViewHitTestBehavior.opaque, hitTestBehavior: PlatformViewHitTestBehavior.opaque,
), ),
) ),
), ),
], ],
), ),
...@@ -312,7 +312,7 @@ void main() { ...@@ -312,7 +312,7 @@ void main() {
viewsController.motionEvents[currentViewId + 1], viewsController.motionEvents[currentViewId + 1],
orderedEquals(<FakeMotionEvent> [ orderedEquals(<FakeMotionEvent> [
const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(50.0, 50.0)]), const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(50.0, 50.0)]),
]) ]),
); );
expect( expect(
numPointerDownsOnParent, numPointerDownsOnParent,
...@@ -335,7 +335,7 @@ void main() { ...@@ -335,7 +335,7 @@ void main() {
child: AndroidView(viewType: 'webview'), child: AndroidView(viewType: 'webview'),
), ),
), ),
) ),
); );
final TestGesture gesture = await tester.startGesture(const Offset(50.0, 50.0)); final TestGesture gesture = await tester.startGesture(const Offset(50.0, 50.0));
...@@ -346,7 +346,7 @@ void main() { ...@@ -346,7 +346,7 @@ void main() {
orderedEquals(<FakeMotionEvent> [ orderedEquals(<FakeMotionEvent> [
const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(40.0, 40.0)]), const FakeMotionEvent(AndroidViewController.kActionDown, <int> [0], <Offset> [Offset(40.0, 40.0)]),
const FakeMotionEvent(AndroidViewController.kActionUp, <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