зеркало из https://github.com/mozilla/gecko-dev.git
17 строки
334 B
JavaScript
17 строки
334 B
JavaScript
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
|
|
|
function run_test() {
|
|
var f = Services.dirsvc.get("CurProcD", Ci.nsIFile);
|
|
|
|
var terminated = false;
|
|
for (var i = 0; i < 100; i++) {
|
|
if (f == null) {
|
|
terminated = true;
|
|
break;
|
|
}
|
|
f = f.parent;
|
|
}
|
|
|
|
Assert.ok(terminated);
|
|
}
|