fix(flutter): 隐藏视频常驻调试文字
This commit is contained in:
1 parent
da549492b0
commit
a756faca6c
2 files changed
+3
-32
No files matched your search
@@ -15,10 +15,7 @@ void main() {
|
||||
expect(find.byKey(const Key('player-fallback-background')), findsOneWidget);
|
||||
expect(find.byKey(const Key('player-fallback-cover')), findsOneWidget);
|
||||
expect(_opacity(tester), 0);
|
||||
expect(
|
||||
tester.widget<Text>(find.byKey(const Key('player-debug-video'))).data,
|
||||
'loading',
|
||||
);
|
||||
expect(find.byKey(const Key('player-debug-video')), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets('should_fade_video_in_within_200ms_after_first_frame', (
|
||||
@@ -52,6 +49,7 @@ void main() {
|
||||
await tester.pump(const Duration(milliseconds: 100));
|
||||
expect(_fadeValue(tester), 1);
|
||||
expect(find.byKey(const Key('player-fallback-background')), findsOneWidget);
|
||||
expect(find.byKey(const Key('player-debug-video')), findsNothing);
|
||||
});
|
||||
|
||||
testWidgets('should_show_video_error_above_retained_fallback', (
|
||||
@@ -66,10 +64,7 @@ void main() {
|
||||
expect(find.text('No route to host'), findsOneWidget);
|
||||
expect(find.byKey(const Key('player-fallback-background')), findsOneWidget);
|
||||
expect(_opacity(tester), 0);
|
||||
expect(
|
||||
tester.widget<Text>(find.byKey(const Key('player-debug-video'))).data,
|
||||
'error: No route to host',
|
||||
);
|
||||
expect(find.byKey(const Key('player-debug-video')), findsNothing);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user