From 0671b09df5df825d58868ad815a85e1400e9fc2a Mon Sep 17 00:00:00 2001 From: Rudy Ges Date: Wed, 29 Jan 2025 09:01:50 +0100 Subject: [PATCH] [tests] Add test for #8671 (#11952) This should be our fastest display method.. --- tests/server/src/cases/ServerTests.hx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/server/src/cases/ServerTests.hx b/tests/server/src/cases/ServerTests.hx index b6f9baf875e..340250073d3 100644 --- a/tests/server/src/cases/ServerTests.hx +++ b/tests/server/src/cases/ServerTests.hx @@ -1,5 +1,6 @@ package cases; +import haxe.Json; import haxe.display.Diagnostic; import haxe.display.Display; import haxe.display.FsPath; @@ -521,6 +522,12 @@ class ServerTests extends TestCase { }); } + function test8671() { + runHaxeJson(["--times"], ServerMethods.Contexts, null); + var res = Json.parse(lastResult.stderr); + Assert.equals(0, res.result.timers.time); + } + function test10986() { vfs.putContent("Main.hx", getTemplate("issues/Issue10986/Main.hx")); vfs.putContent("haxe/ds/Vector.hx", getTemplate("issues/Issue10986/Vector.hx"));