Skip to content

Commit

Permalink
update vid playback floor
Browse files Browse the repository at this point in the history
  • Loading branch information
ellraiser committed Nov 17, 2023
1 parent 20006bd commit d865c19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ Test classes that still need to be written:

## Runner Exceptions
The automated tests through Github work for the most part however there are a few exceptions that have to be accounted for due to limitations of the VMs and the graphics emulation used.

These exceptions are either skipped, or handled by using a 1px or 1/255rgba tolerance - when run locally on real hardware, these tests pass fine at the default 0 tolerance.
| Test | Runner OS | Exception Used | Reason |
| Test | OS | Exception | Reason |
| -------------------------- | --------- | ------------------- | ------ |
| love.graphics.points | MacOS | 1px tolerance | Points are offset by 1,1 when drawn |
| love.graphics.setWireframe | MacOS | 1px tolerance | Wireframes are offset by 1,1 when drawn |
Expand Down
4 changes: 2 additions & 2 deletions tests/graphics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -550,9 +550,9 @@ love.test.graphics.Video = function(test)
test:assertObject(stream)
-- check playing / pausing / seeking
video:play()
test:waitFrames(60)
test:waitFrames(61)
video:pause()
test:assertEquals(1, math.ceil(video:tell()), 'check video playing for 1s')
test:assertEquals(1, math.floor(video:tell()), 'check video playing for 1s')
video:seek(0.2)
test:assertEquals(0.2, video:tell(), 'check video seeking')
video:rewind()
Expand Down

0 comments on commit d865c19

Please sign in to comment.