Skip to content

Commit

Permalink
cleanup a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed Jan 30, 2025
1 parent a273b72 commit 6904e77
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 49 deletions.
1 change: 0 additions & 1 deletion tests/display/src/BaseDisplayTestContext.hx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class BaseDisplayTestContext {
"--cwd", dir,
"-cp", '${Sys.getCwd()}/src-misc',
"-D", "message.reporting=classic",
"-D", "source_header=Generated by Haxe 5.0.0",
"--no-output"
].concat(args), stdin == null ? null : Bytes.ofString(stdin));
}
Expand Down
1 change: 0 additions & 1 deletion tests/display/src/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class Main {
report.setHandler((report) -> {
Sys.println(report.getResults());
haxeServer.close();
// @:privateAccess BaseDisplayTestContext.p.kill();
});

Vfs.removeDir('${Sys.getCwd()}/test/cases');
Expand Down
48 changes: 1 addition & 47 deletions tests/display/src/cases/Issue5172.hx
Original file line number Diff line number Diff line change
Expand Up @@ -13,55 +13,9 @@ class Issue5172 extends DisplayTestCase {
}
**/
function test() @:privateAccess {
// var contexts = ctx.callDisplay(ServerMethods.Contexts, null).result;
// for (c in contexts) trace(c);

// var cp = ctx.callDisplay(ServerMethods.ReadClassPaths, null).result;
// trace(cp);

eq("Int", type(pos(1)));
eq("Int", type(pos(2)));
eq(range(3, 1), position(pos(1)));

// trace("non macro ctx");
// var res = ctx.callDisplay(ServerMethods.Files, {
// signature: "81349629668fa99711001f029e1c2390"
// }).result;
// for (f in res) trace(f);

// trace("macro ctx");
// var res = ctx.callDisplay(ServerMethods.Files, {
// signature: "875835219d45ee2ee44539a101e9091f"
// }).result;
// for (f in res) trace(f);

// ctx: 81349629668fa99711001f029e1c2390
// macro ctx: 875835219d45ee2ee44539a101e9091f

// try {
var res = usage(pos(1));
// trace(res);
arrayEq([range(4, 2)], res);
// } catch(e) {
// trace(e);
// }

// var contexts = ctx.callDisplay(ServerMethods.Contexts, null).result;
// for (c in contexts) trace(c);

// var cp = ctx.callDisplay(ServerMethods.ReadClassPaths, null).result;
// trace(cp);

// trace("non macro ctx");
// var res = ctx.callDisplay(ServerMethods.Files, {
// signature: "81349629668fa99711001f029e1c2390"
// }).result;
// for (f in res) trace(f);

// trace("macro ctx");
// var res = ctx.callDisplay(ServerMethods.Files, {
// signature: "875835219d45ee2ee44539a101e9091f"
// }).result;
// for (f in res) trace(f);
arrayEq([range(4, 2)], usage(pos(1)));
}
}

0 comments on commit 6904e77

Please sign in to comment.