소스 검색

fix display tests on windows

Dan Korostelev 9 년 전
부모
커밋
f5110782c5
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      tests/display/src/DisplayTestContext.hx

+ 2 - 1
tests/display/src/DisplayTestContext.hx

@@ -154,7 +154,8 @@ class DisplayTestContext {
 			p = Sys.getCwd() + p;
 		}
 		if (Sys.systemName() == "Windows") {
-			// on windows, haxe returns paths with backslashes
+			// on windows, haxe returns paths with backslashes, drive letter uppercased
+			p = p.substr(0, 1).toUpperCase() + p.substr(1);
 			p = p.replace("/", "\\");
 		}
 		return p;