Merge pull request #1645 from adobe/glenn/issue-1640

Fix extensions unit tests when run from symlinked directory
This commit is contained in:
Jason San Jose 2012-09-13 17:14:58 -07:00
Родитель a8db4331bd e3374b6986
Коммит 8b5f60cce0
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -97,7 +97,7 @@ define(function (require, exports, module) {
extensionPath = FileUtils.getNativeBracketsDirectoryPath();
// Assumes the caller's window.location context is /test/SpecRunner.html
extensionPath = extensionPath.replace("brackets/test", "brackets/src"); // convert from "test" to "src"
extensionPath = extensionPath.replace(/\/test$/, "/src"); // convert from "test" to "src"
extensionPath += "/" + config.baseUrl + "/" + entryPoint + ".js";
var fileExists = false, statComplete = false;