1 // test that things that are expected to be in gre-resources are still there
5 function wrapInputStream(input
) {
6 var nsIScriptableInputStream
= Ci
.nsIScriptableInputStream
;
7 var factory
= Cc
["@mozilla.org/scriptableinputstream;1"];
8 var wrapper
= factory
.createInstance(nsIScriptableInputStream
);
13 function check_file(file
) {
14 var channel
= NetUtil
.newChannel({
15 uri
: "resource://gre-resources/" + file
,
16 loadUsingSystemPrincipal
: true,
19 let instr
= wrapInputStream(channel
.open());
20 Assert
.ok(!!instr
.read(1024).length
);
22 do_throw("Failed to read " + file
+ " from gre-resources:" + e
);
27 for (let file
of ["ua.css"]) {