tor-browser

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

browser_bug1716290-3.js (535B)


      1 function test() {
      2  var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/";
      3  runCharsetTest(
      4    rootDir + "file_bug1716290-3.sjs",
      5    afterOpen,
      6    afterChangeCharset
      7  );
      8 }
      9 
     10 function afterOpen() {
     11  is(
     12    content.document.characterSet,
     13    "Shift_JIS",
     14    "Doc should report Shift_JIS initially"
     15  );
     16 }
     17 
     18 function afterChangeCharset() {
     19  is(
     20    content.document.characterSet,
     21    "replacement",
     22    "Doc should report replacement subsequently (non-ASCII-compatible HTTP header should override detector)"
     23  );
     24 }