mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
tests: add some tolerance to video rewind test
It happens while the video is still playing, so the tell() query after the rewind isn't guaranteed to be 0.
This commit is contained in:
@@ -25,7 +25,7 @@ love.test.video.VideoStream = function(test)
|
||||
video:seek(0.3)
|
||||
test:assertRange(video:tell(), 0.3, 0.4, 'check seek/tell')
|
||||
video:rewind()
|
||||
test:assertEquals(0, video:tell(), 'check rewind')
|
||||
test:assertRange(video:tell(), 0, 0.1, 'check rewind')
|
||||
video:pause()
|
||||
test:assertFalse(video:isPlaying(), 'check paused')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user