diff --git a/test/spec/LowLevelFileIO-test.js b/test/spec/LowLevelFileIO-test.js index 4134dc4d9..02068ce50 100644 --- a/test/spec/LowLevelFileIO-test.js +++ b/test/spec/LowLevelFileIO-test.js @@ -105,13 +105,19 @@ define(function (require, exports, module) { expect(brackets.fs).toBeTruthy(); }); - it("should getDisplayLocation return correct path", function () { + it("should getDisplayLocation return correct path in browsers", function () { // mount paths expect(brackets.app.getDisplayLocation("/mnt/apple")).toBe("apple"); expect(brackets.app.getDisplayLocation("/mnt/apple/x/")).toBe("apple/x/"); // filer paths expect(brackets.app.getDisplayLocation("/x/apple")).toBe(Strings.STORED_IN_YOUR_BROWSER); expect(brackets.app.getDisplayLocation("/y/apple/x/")).toBe(Strings.STORED_IN_YOUR_BROWSER); + }); + + it("should getDisplayLocation return correct path in tauri", function () { + if(!brackets.browser.isTauri) { + return; + } // tauri paths if(brackets.platform === "win"){ expect(brackets.app.getDisplayLocation("/tauri/x")).toBe("x:\\");