Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit bc1ae80

Browse files
committed
Format video_player_web_test.dart
1 parent 3ec01e8 commit bc1ae80

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

packages/video_player/video_player_web/example/integration_test/video_player_web_test.dart

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ void main() {
1919

2020
setUp(() {
2121
VideoPlayerPlatform.instance = VideoPlayerPlugin();
22-
textureId = VideoPlayerPlatform.instance.create(
23-
DataSource(
24-
sourceType: DataSourceType.network,
25-
uri:
26-
'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4'),
27-
).then((textureId) => textureId!);
22+
textureId = VideoPlayerPlatform.instance
23+
.create(
24+
DataSource(
25+
sourceType: DataSourceType.network,
26+
uri:
27+
'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4',
28+
),
29+
)
30+
.then((textureId) => textureId!);
2831
});
2932

3033
testWidgets('can init', (WidgetTester tester) async {
@@ -71,7 +74,9 @@ void main() {
7174

7275
testWidgets('can set looping', (WidgetTester tester) async {
7376
expect(
74-
VideoPlayerPlatform.instance.setLooping(await textureId, true), completes);
77+
VideoPlayerPlatform.instance.setLooping(await textureId, true),
78+
completes,
79+
);
7580
});
7681

7782
testWidgets('can play', (WidgetTester tester) async {
@@ -80,7 +85,8 @@ void main() {
8085
expect(VideoPlayerPlatform.instance.play(await textureId), completes);
8186
});
8287

83-
testWidgets('throws PlatformException when playing bad media', (WidgetTester tester) async {
88+
testWidgets('throws PlatformException when playing bad media',
89+
(WidgetTester tester) async {
8490
int videoPlayerId = (await VideoPlayerPlatform.instance.create(
8591
DataSource(
8692
sourceType: DataSourceType.network,
@@ -105,7 +111,10 @@ void main() {
105111
});
106112

107113
testWidgets('can set volume', (WidgetTester tester) async {
108-
expect(VideoPlayerPlatform.instance.setVolume(await textureId, 0.8), completes);
114+
expect(
115+
VideoPlayerPlatform.instance.setVolume(await textureId, 0.8),
116+
completes,
117+
);
109118
});
110119

111120
testWidgets('can set playback speed', (WidgetTester tester) async {
@@ -117,8 +126,12 @@ void main() {
117126

118127
testWidgets('can seek to position', (WidgetTester tester) async {
119128
expect(
120-
VideoPlayerPlatform.instance.seekTo(await textureId, Duration(seconds: 1)),
121-
completes);
129+
VideoPlayerPlatform.instance.seekTo(
130+
await textureId,
131+
Duration(seconds: 1),
132+
),
133+
completes,
134+
);
122135
});
123136

124137
testWidgets('can get position', (WidgetTester tester) async {

0 commit comments

Comments
 (0)