2010-06-29 21:16:43 +04:00
|
|
|
registerManifests([do_get_file("data/test_crlf.manifest")]);
|
|
|
|
|
2017-10-26 23:56:18 +03:00
|
|
|
function run_test() {
|
2010-06-29 21:16:43 +04:00
|
|
|
let cr = Cc["@mozilla.org/chrome/chrome-registry;1"].getService(
|
|
|
|
Ci.nsIChromeRegistry
|
|
|
|
);
|
|
|
|
|
|
|
|
let sourceURI = Services.io.newURI("chrome://test_crlf/content/");
|
|
|
|
// this throws for packages that are not registered
|
|
|
|
let file = cr.convertChromeURL(sourceURI).QueryInterface(Ci.nsIFileURL).file;
|
2017-10-26 23:56:18 +03:00
|
|
|
|
2010-06-29 21:16:43 +04:00
|
|
|
Assert.ok(file.equals(do_get_file("data/test_crlf.xul", true)));
|
|
|
|
}
|