Browse Source

fix display tests on windows

Dan Korostelev 9 years ago
parent
commit
f5110782c5
1 changed files with 2 additions and 1 deletions
  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;