浏览代码

[tests] Add test for #8671 (#11952)

This should be our fastest display method..
Rudy Ges 7 月之前
父节点
当前提交
0671b09df5
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      tests/server/src/cases/ServerTests.hx

+ 7 - 0
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"));