tor-browser

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

browser_bug1688368-1.js (479B)


      1 function test() {
      2  var rootDir = "http://mochi.test:8888/browser/docshell/test/browser/";
      3  runCharsetTest(
      4    rootDir + "file_bug1688368-1.sjs",
      5    afterOpen,
      6    afterChangeCharset
      7  );
      8 }
      9 
     10 function afterOpen() {
     11  is(
     12    content.document.body.textContent.indexOf("â"),
     13    0,
     14    "Doc should be windows-1252 initially"
     15  );
     16 }
     17 
     18 function afterChangeCharset() {
     19  is(
     20    content.document.body.textContent.indexOf("☃"),
     21    0,
     22    "Doc should be UTF-8 subsequently"
     23  );
     24 }