Follow-on fix for bug 457825. Use sheet principal for agent and user sheets. r=dbaron...
[wine-gecko.git] / netwerk / test / unit / test_bug336501.js
blob6cfdeb73ab1c6fc07eefda62d7080fa7dceb9ef0
1 var Cc = Components.classes;
2 var Ci = Components.interfaces;
4 function run_test() {
5 var f =
6 Cc["@mozilla.org/file/directory_service;1"].
7 getService(Ci.nsIProperties).get("ComRegF", Ci.nsIFile);
9 var fis =
10 Cc["@mozilla.org/network/file-input-stream;1"].
11 createInstance(Ci.nsIFileInputStream);
12 fis.init(f, -1, -1, 0);
14 var bis =
15 Cc["@mozilla.org/network/buffered-input-stream;1"].
16 createInstance(Ci.nsIBufferedInputStream);
17 bis.init(fis, 32);
19 var sis =
20 Cc["@mozilla.org/scriptableinputstream;1"].
21 createInstance(Ci.nsIScriptableInputStream);
22 sis.init(bis);
24 sis.read(45);
25 sis.close();
27 var data = sis.read(45);
28 do_check_eq(data.length, 0);