Skip to content

Commit 7e50571

Browse files
committed
fix: failing mac only tests does not make sense for phoenix VFS
1 parent f9e15a2 commit 7e50571

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

test/spec/LowLevelFileIO-test.js

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,6 @@ define(function (require, exports, module) {
135135
expect(cb.error.code).toBe(brackets.fs.ERR_NOT_FOUND);
136136
});
137137

138-
it("should return an error if the directory can't be read (Mac only)", async function () {
139-
if (brackets.platform === "mac") {
140-
var cb = readdirSpy();
141-
142-
brackets.fs.readdir(baseDir + "/cant_read_here", cb);
143-
144-
await awaitsFor(function () { return cb.wasCalled; }, "readdir to finish", 1000);
145-
146-
expect(cb.error).toBe(brackets.fs.ERR_CANT_READ);
147-
}
148-
149-
});
150-
151138
it("should return an error if invalid parameters are passed", function () {
152139
var cb = readdirSpy();
153140

@@ -323,19 +310,6 @@ define(function (require, exports, module) {
323310
expect(readFileCB.content).toBe(contents);
324311
});
325312

326-
it("should return an error if the file can't be written (Mac only)", async function () {
327-
if (brackets.platform === "mac") {
328-
var cb = errSpy();
329-
330-
brackets.fs.writeFile(baseDir + "/cant_write_here/write_test.txt", contents, UTF8, cb);
331-
332-
await awaitsFor(function () { return cb.wasCalled; }, "writeFile to finish", 1000);
333-
334-
expect(cb.error).toBe(brackets.fs.ERR_CANT_WRITE);
335-
}
336-
337-
});
338-
339313
it("should return an error if called with invalid parameters", function () {
340314
var cb = errSpy();
341315

@@ -572,21 +546,6 @@ define(function (require, exports, module) {
572546

573547
expect(cb.error.code).toBe(brackets.fs.ERR_FILE_EXISTS);
574548
});
575-
it("should return an error if the parent folder is read only (Mac only)", async function () {
576-
if (brackets.platform === "mac") {
577-
var oldName = testDir + "/cant_write_here/readme.txt",
578-
newName = testDir + "/cant_write_here/readme_renamed.txt",
579-
cb = errSpy();
580-
581-
complete = false;
582-
583-
brackets.fs.rename(oldName, newName, cb);
584-
585-
await awaitsFor(function () { return cb.wasCalled; }, "rename to finish", 1000);
586-
587-
expect(cb.error).toBe(brackets.fs.ERR_CANT_WRITE);
588-
}
589-
});
590549
// TODO: More testing of error cases?
591550
});
592551

0 commit comments

Comments
 (0)