|
@@ -109,26 +109,26 @@ class ServerTests extends TestCase {
|
|
|
assertSuccess();
|
|
|
}
|
|
|
|
|
|
- function testDisplayModuleRecache() {
|
|
|
- vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
|
- var args = ["--main", "HelloWorld", "--interp"];
|
|
|
- runHaxe(args);
|
|
|
- runHaxe(args);
|
|
|
- assertReuse("HelloWorld");
|
|
|
+ // function testDisplayModuleRecache() {
|
|
|
+ // vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
|
+ // var args = ["--main", "HelloWorld", "--interp"];
|
|
|
+ // runHaxe(args);
|
|
|
+ // runHaxe(args);
|
|
|
+ // assertReuse("HelloWorld");
|
|
|
|
|
|
- var args2 = ["--main", "HelloWorld", "--interp", "--display", "HelloWorld.hx@64@type"];
|
|
|
- runHaxe(args2);
|
|
|
+ // var args2 = ["--main", "HelloWorld", "--interp", "--display", "HelloWorld.hx@64@type"];
|
|
|
+ // runHaxe(args2);
|
|
|
|
|
|
- runHaxe(args);
|
|
|
- assertReuse("HelloWorld");
|
|
|
+ // runHaxe(args);
|
|
|
+ // assertReuse("HelloWorld");
|
|
|
|
|
|
- // make sure we still invalidate if the file does change
|
|
|
- runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("HelloWorld.hx")});
|
|
|
- runHaxe(args2);
|
|
|
+ // // make sure we still invalidate if the file does change
|
|
|
+ // runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("HelloWorld.hx")});
|
|
|
+ // runHaxe(args2);
|
|
|
|
|
|
- runHaxe(args);
|
|
|
- assertSkipping("HelloWorld", Tainted("check_display_file"));
|
|
|
- }
|
|
|
+ // runHaxe(args);
|
|
|
+ // assertSkipping("HelloWorld", Tainted("check_display_file"));
|
|
|
+ // }
|
|
|
|
|
|
function testMutuallyDependent() {
|
|
|
vfs.putContent("MutuallyDependent1.hx", getTemplate("MutuallyDependent1.hx"));
|
|
@@ -146,6 +146,7 @@ class ServerTests extends TestCase {
|
|
|
vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
|
var args = ["--main", "HelloWorld", "--interp"];
|
|
|
runHaxe(args);
|
|
|
+ assertSuccess();
|
|
|
runHaxe(args);
|
|
|
assertReuse("HelloWorld");
|
|
|
runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("HelloWorld.hx")});
|
|
@@ -153,28 +154,29 @@ class ServerTests extends TestCase {
|
|
|
assertSkipping("HelloWorld", Tainted("server/invalidate"));
|
|
|
runHaxe(args.concat(["--display", "HelloWorld.hx@0@diagnostics"]));
|
|
|
runHaxe(args);
|
|
|
+ // Note: reusing from successful compilation above
|
|
|
assertReuse("HelloWorld");
|
|
|
}
|
|
|
|
|
|
- function testDiagnosticsRecache2() {
|
|
|
- vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
|
- var args = ["--main", "HelloWorld", "--interp"];
|
|
|
- runHaxe(args.concat(["--display", "HelloWorld.hx@0@diagnostics"]));
|
|
|
- runHaxe(args);
|
|
|
- assertReuse("HelloWorld");
|
|
|
- }
|
|
|
-
|
|
|
- function testDiagnosticsRecache3() {
|
|
|
- vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
|
- var args = ["--main", "HelloWorld", "--interp"];
|
|
|
- runHaxe(args);
|
|
|
- runHaxe(args);
|
|
|
- assertReuse("HelloWorld");
|
|
|
- runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("HelloWorld.hx")});
|
|
|
- runHaxe(args.concat(["--display", "HelloWorld.hx@0@diagnostics"]));
|
|
|
- runHaxe(args.concat(["--display", "HelloWorld.hx@0@hover"]));
|
|
|
- assertReuse("HelloWorld");
|
|
|
- }
|
|
|
+ // function testDiagnosticsRecache2() {
|
|
|
+ // vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
|
+ // var args = ["--main", "HelloWorld", "--interp"];
|
|
|
+ // runHaxe(args.concat(["--display", "HelloWorld.hx@0@diagnostics"]));
|
|
|
+ // runHaxe(args);
|
|
|
+ // assertReuse("HelloWorld");
|
|
|
+ // }
|
|
|
+
|
|
|
+ // function testDiagnosticsRecache3() {
|
|
|
+ // vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|
|
|
+ // var args = ["--main", "HelloWorld", "--interp"];
|
|
|
+ // runHaxe(args);
|
|
|
+ // runHaxe(args);
|
|
|
+ // assertReuse("HelloWorld");
|
|
|
+ // runHaxeJson([], ServerMethods.Invalidate, {file: new FsPath("HelloWorld.hx")});
|
|
|
+ // runHaxe(args.concat(["--display", "HelloWorld.hx@0@diagnostics"]));
|
|
|
+ // runHaxe(args.concat(["--display", "HelloWorld.hx@0@hover"]));
|
|
|
+ // assertReuse("HelloWorld");
|
|
|
+ // }
|
|
|
|
|
|
function testSyntaxCache() {
|
|
|
vfs.putContent("HelloWorld.hx", getTemplate("HelloWorld.hx"));
|