1 var Cc
= Components
.classes
;
2 var Ci
= Components
.interfaces
;
6 Cc
["@mozilla.org/file/directory_service;1"].
7 getService(Ci
.nsIProperties
).get("ComRegF", Ci
.nsIFile
);
10 Cc
["@mozilla.org/network/file-input-stream;1"].
11 createInstance(Ci
.nsIFileInputStream
);
12 fis
.init(f
, -1, -1, 0);
15 Cc
["@mozilla.org/network/buffered-input-stream;1"].
16 createInstance(Ci
.nsIBufferedInputStream
);
20 Cc
["@mozilla.org/scriptableinputstream;1"].
21 createInstance(Ci
.nsIScriptableInputStream
);
27 var data
= sis
.read(45);
28 do_check_eq(data
.length
, 0);