mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
20 lines
389 B
JavaScript
20 lines
389 B
JavaScript
var Cc = Components.classes;
|
|
var Ci = Components.interfaces;
|
|
|
|
function run_test() {
|
|
var f =
|
|
Cc["@mozilla.org/file/directory_service;1"].
|
|
getService(Ci.nsIProperties).get("CurProcD", Ci.nsIFile);
|
|
|
|
var terminated = false;
|
|
for (var i = 0; i < 100; i++) {
|
|
if (f == null) {
|
|
terminated = true;
|
|
break;
|
|
}
|
|
f = f.parent;
|
|
}
|
|
|
|
do_check_true(terminated);
|
|
}
|