From d85f0cd1ec08f71f6b5e5d31aff6d457a5b3166d Mon Sep 17 00:00:00 2001 From: Rudy Ges Date: Wed, 24 Jan 2024 10:46:57 +0100 Subject: [PATCH] [tests] add display test for static field completion Also run again a couple tests after caching type --- tests/display/src/cases/Completion.hx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/display/src/cases/Completion.hx b/tests/display/src/cases/Completion.hx index d098925f7c6..1364786cd81 100644 --- a/tests/display/src/cases/Completion.hx +++ b/tests/display/src/cases/Completion.hx @@ -37,6 +37,8 @@ class Completion extends DisplayTestCase { **/ @:funcCode function testHaxeUnitPort4() { eq(true, hasPath(fields(pos(1)), "Expr")); + DisplayTestContext.runHaxe(['haxe.macro.Expr']); + eq(true, hasPath(fields(pos(1)), "Expr")); } /** @@ -44,6 +46,17 @@ class Completion extends DisplayTestCase { **/ @:funcCode function testHaxeUnitPort5() { eq(true, hasPath(fields(pos(1)), "ExprDef")); + DisplayTestContext.runHaxe(['haxe.macro.Expr']); + eq(true, hasPath(fields(pos(1)), "ExprDef")); + } + + /** + haxe.Json.{-1-} + **/ + @:funcCode function testStaticField() { + eq(true, hasPath(fields(pos(1)), "stringify")); + DisplayTestContext.runHaxe(['haxe.Json']); + eq(true, hasPath(fields(pos(1)), "stringify")); } /**