From b696d932b5fdbf4bcb53b7ee7f3cfa312d384253 Mon Sep 17 00:00:00 2001 From: Rudy Ges Date: Thu, 30 Jan 2025 10:19:50 +0100 Subject: [PATCH] haaaaands --- tests/display/src/cases/Issue5172.hx | 80 +++++++++++++++++----------- 1 file changed, 50 insertions(+), 30 deletions(-) diff --git a/tests/display/src/cases/Issue5172.hx b/tests/display/src/cases/Issue5172.hx index 4a6d8ebd317..a4939fb245e 100644 --- a/tests/display/src/cases/Issue5172.hx +++ b/tests/display/src/cases/Issue5172.hx @@ -13,26 +13,26 @@ class Issue5172 extends DisplayTestCase { } **/ function test() @:privateAccess { - var res = ctx.callDisplay(ServerMethods.Configure, { - print: { - notCached: true, - parsed: true, - reusing: true, - skippingDep: true, - unchangedContent: true, - cachedModules: true, - arguments: true, - completion: true, - defines: true, - signature: true, - displayPosition: true, - message: true, - socketMessage: true, - uncaughtError: true, - newContext: true, - } - }).result; - trace(res); + // var res = ctx.callDisplay(ServerMethods.Configure, { + // print: { + // notCached: true, + // parsed: true, + // reusing: true, + // skippingDep: true, + // unchangedContent: true, + // cachedModules: true, + // arguments: true, + // completion: true, + // defines: true, + // signature: true, + // displayPosition: true, + // message: true, + // // socketMessage: true, + // uncaughtError: true, + // newContext: true, + // } + // }).result; + // trace(res); eq("Int", type(pos(1))); eq("Int", type(pos(2))); @@ -44,25 +44,45 @@ class Issue5172 extends DisplayTestCase { var contexts = ctx.callDisplay(ServerMethods.Contexts, null).result; for (c in contexts) trace(c); + // var res = ctx.callDisplay(ServerMethods.Module, { + // signature: "81349629668fa99711001f029e1c2390", + // path: "haxe.macro.ExampleJSGenerator" + // }).result; + // trace(res); + + var res = ctx.callDisplay(cast "server/typeContexts", { + // signature: "81349629668fa99711001f029e1c2390", + modulePath: "haxe.macro.ExampleJSGenerator", + typeName: "ExampleJSGenerator" + }).result; + trace(res); + try { var res = usage(pos(1)); trace(res); - print(); + // print(); arrayEq([range(4, 2)], res); } catch(e) { trace(e); - print(); + // print(); } + + var res = ctx.callDisplay(cast "server/typeContexts", { + // signature: "81349629668fa99711001f029e1c2390", + modulePath: "haxe.macro.ExampleJSGenerator", + typeName: "ExampleJSGenerator" + }).result; + trace(res); } function print() @:privateAccess { - var p:haxeserver.process.HaxeServerProcessSys = cast @:privateAccess BaseDisplayTestContext.haxeServer.process; - var p = p.process; - try { - p.kill(); - trace(p.stdout.readAll()); - } catch(e) { - trace(e); - } + // var p:haxeserver.process.HaxeServerProcessSys = cast @:privateAccess BaseDisplayTestContext.haxeServer.process; + // var p = p.process; + // try { + // p.kill(); + // trace(p.stdout.readAll()); + // } catch(e) { + // trace(e); + // } } }