зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1393805 - Part 5 - Test that the system extensions dev dir is readable from content. r=bobowen
MozReview-Commit-ID: 7YN7S7R39CU --HG-- extra : rebase_source : 092f1046a3f6b44c807f7632275615a6bdd674dd
This commit is contained in:
Родитель
1e86039b0d
Коммит
9d77bd9d20
|
@ -405,6 +405,15 @@ async function testFileAccess() {
|
|||
});
|
||||
}
|
||||
|
||||
let sysExtDevDir = GetSystemExtensionsDevDir();
|
||||
tests.push({
|
||||
desc: "system extensions dev dir",
|
||||
ok: true,
|
||||
browser: webBrowser,
|
||||
file: sysExtDevDir,
|
||||
minLevel: 0,
|
||||
});
|
||||
|
||||
if (isWin()) {
|
||||
let extDir = GetPerUserExtensionDir();
|
||||
tests.push({
|
||||
|
|
|
@ -71,6 +71,10 @@ function GetHomeDir() {
|
|||
return (homeDir);
|
||||
}
|
||||
|
||||
function GetSystemExtensionsDevDir() {
|
||||
return Services.dirsvc.get("XRESysExtDev", Ci.nsIFile);
|
||||
}
|
||||
|
||||
function GetPerUserExtensionDir() {
|
||||
return Services.dirsvc.get("XREUSysExt", Ci.nsIFile);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче