tor-browser

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

browser_bug1716290-2.js (547B)


      1 function test() {
      2  var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/";
      3  runCharsetTest(
      4    rootDir + "file_bug1716290-2.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    "windows-1252",
     22    "Doc should report windows-1252 subsequently (detector should override meta resolving to the replacement encoding)"
     23  );
     24 }