fune/xpcom/tests/unit/test_bug332389.js
Victor Porof 1fcaa7d445 Bug 1561435 - Format xpcom/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35945

--HG--
extra : source : c64ace0e98b196a9a392d54800159e327921bf99
2019-07-05 11:19:37 +02:00

16 lines
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);
}