From d86f0c30e1726a56e670955c3b995945c1daf834 Mon Sep 17 00:00:00 2001 From: RblSb Date: Thu, 6 Feb 2025 06:41:49 +0300 Subject: Fixes pack - Fix timer seek on server pause with double timer.pause() calls - Implement multi-caching - Better uploading progress with XMLHttpRequest - Better upload/cache error reporting --- test/tests/TestTimer.hx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/tests/TestTimer.hx') diff --git a/test/tests/TestTimer.hx b/test/tests/TestTimer.hx index 1261553..2e6e9e8 100644 --- a/test/tests/TestTimer.hx +++ b/test/tests/TestTimer.hx @@ -136,6 +136,18 @@ class TestTimer extends Test { }, 400); } + @:timeout(500) + function testDoublePause(async:Async) { + final timer = new VideoTimer(); + timer.start(); + timer.pause(); + Timer.delay(() -> { + timer.pause(); + almostEq(0, timer.getTime()); + async.done(); + }, 300); + } + @:timeout(500) function testBigRate(async:Async) { final timer = new VideoTimer(); -- cgit v1.2.3