tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_crlf.js (455B)


      1 registerManifests([do_get_file("data/test_crlf.manifest")]);
      2 
      3 function run_test() {
      4  let cr = Cc["@mozilla.org/chrome/chrome-registry;1"].getService(
      5    Ci.nsIChromeRegistry
      6  );
      7 
      8  let sourceURI = Services.io.newURI("chrome://test_crlf/content/");
      9  // this throws for packages that are not registered
     10  let file = cr.convertChromeURL(sourceURI).QueryInterface(Ci.nsIFileURL).file;
     11 
     12  Assert.ok(file.equals(do_get_file("data/test_crlf.xul", true)));
     13 }