Pārlūkot izejas kodu

fix display tests on windows

Dan Korostelev 9 gadi atpakaļ
vecāks
revīzija
f5110782c5
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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;