tor-browser

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

test_bug379034.js (573B)


      1 "use strict";
      2 
      3 function run_test() {
      4  const ios = Services.io;
      5 
      6  var base = ios.newURI("http://localhost/bug379034/index.html");
      7 
      8  var uri = ios.newURI("http:a.html", null, base);
      9  Assert.equal(uri.spec, "http://localhost/bug379034/a.html");
     10 
     11  uri = ios.newURI("HtTp:b.html", null, base);
     12  Assert.equal(uri.spec, "http://localhost/bug379034/b.html");
     13 
     14  uri = ios.newURI("https:c.html", null, base);
     15  Assert.equal(uri.spec, "https://c.html/");
     16 
     17  uri = ios.newURI("./https:d.html", null, base);
     18  Assert.equal(uri.spec, "http://localhost/bug379034/https:d.html");
     19 }