aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2025-02-06 06:41:49 +0300
committerRblSb <msrblsb@gmail.com>2025-02-07 01:12:14 +0300
commitd86f0c30e1726a56e670955c3b995945c1daf834 (patch)
tree2cff6b1c76191df76291f93c5a46810f09181727 /test
parent382f9b2ebedca905028341825350a0fa69d88673 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/tests/TestServer.hx4
-rw-r--r--test/tests/TestTimer.hx12
2 files changed, 12 insertions, 4 deletions
diff --git a/test/tests/TestServer.hx b/test/tests/TestServer.hx
index abdbf8f..b02bb90 100644
--- a/test/tests/TestServer.hx
+++ b/test/tests/TestServer.hx
@@ -67,10 +67,6 @@ class TestServer extends Test {
server.onServerInited = () -> {
final client = new FakeClient(server.localIp, server.port);
var client2:FakeClient = null;
- // client.ws.on("message", data -> {
- // final data:WsEvent = Json.parse(data);
- // trace(data.type);
- // });
client.message().then((data) -> {
Assert.equals(Connected, data.type);
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
@@ -137,6 +137,18 @@ class TestTimer extends Test {
}
@: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();
timer.start();
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage