Skip to content

Commit

Permalink
[tests] add display test for static field completion
Browse files Browse the repository at this point in the history
Also run again a couple tests after caching type
  • Loading branch information
kLabz committed Jan 24, 2024
1 parent 8cbf396 commit d85f0cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/display/src/cases/Completion.hx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,26 @@ 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"));
}

/**
var x:haxe.macro.Expr.{-1-}
**/
@: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"));
}

/**
Expand Down

0 comments on commit d85f0cd

Please sign in to comment.