aboutsummaryrefslogtreecommitdiffstats
path: root/test/tests/TestTimer.hx
diff options
context:
space:
mode:
Diffstat (limited to 'test/tests/TestTimer.hx')
-rw-r--r--test/tests/TestTimer.hx12
1 files changed, 12 insertions, 0 deletions
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