Skip to content
Merged
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,12 @@ void main() {
await tester.pumpAndSettle(_playDuration);

await player.pause(textureId);
await tester.pumpAndSettle(_playDuration);
final Duration pausedDuration = await player.getPosition(textureId);
await tester.pumpAndSettle(_playDuration);

// TODO(camsim99): Implement reliable way to tell when pausing completes
// to check for exact pausedDuration.
expect(await player.getPosition(textureId), pausedDuration);
await player.dispose(textureId);
});
Expand Down