Bug 1329294 Part 2: Enable content temp file test on Windows. r=haik

This commit is contained in:
Bob Owen 2017-04-10 14:39:58 +01:00
Родитель 02318af6d1
Коммит 48b2af658f
1 изменённых файлов: 4 добавлений и 10 удалений

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

@ -197,16 +197,10 @@ function* createTempFile() {
let browser = gBrowser.selectedBrowser;
let path = fileInTempDir().path;
let fileCreated = yield ContentTask.spawn(browser, path, createFile);
if (!fileCreated && isWin()) {
// TODO: fix 1329294 and enable this test for Windows.
// Not using todo() because this only fails on automation.
info("ignoring failure to write to content temp due to 1329294\n");
} else {
ok(fileCreated == true, "creating a file in content temp is permitted");
// now delete the file
let fileDeleted = yield ContentTask.spawn(browser, path, deleteFile);
ok(fileDeleted == true, "deleting a file in content temp is permitted");
}
ok(fileCreated == true, "creating a file in content temp is permitted");
// now delete the file
let fileDeleted = yield ContentTask.spawn(browser, path, deleteFile);
ok(fileDeleted == true, "deleting a file in content temp is permitted");
}
// Test reading files and dirs from web and file content processes.