Forráskód Böngészése

[tests] sourcemap tests compile fix

Jens Fischer 6 éve
szülő
commit
2454b76809

+ 1 - 1
tests/sourcemaps/src/Validator.hx

@@ -110,7 +110,7 @@ class Validator {
 				sourceFile = Compiler.getOutput();
 				mapFile = '${Compiler.getOutput()}.map';
 			case Php:
-				var phpFilePath = new Path(location.file.substr(location.file.indexOf('cases')));
+				var phpFilePath = new Path(location.file.toString().substr(location.file.toString().indexOf('cases')));
 				phpFilePath.ext = 'php';
 				sourceFile = Path.join([Compiler.getOutput(), 'lib', phpFilePath.toString()]);
 				mapFile = '$sourceFile.map';

+ 3 - 1
tests/sourcemaps/src/validation/ValidationError.hx

@@ -1,12 +1,14 @@
 package validation;
 
+import haxe.display.FsPath;
+
 typedef ValidationError = {
 	/** Code expected to be generated from the haxe code */
 	var expected:String;
 	/** Position of the haxe code, which is expected to be generated as `expected` code */
 	var pos:{
 		/** .hx File */
-		var file:String;
+		var file:FsPath;
 		/** 1-base line number in .hx file */
 		var line:Int;
 		/** 1-base column number in .hx file */