tor-browser

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

month-calendar.js (686B)


      1 // |reftest| skip-if(!this.hasOwnProperty('Intl')||!this.hasOwnProperty('addIntlExtras'))
      2 
      3 addMozIntlDisplayNames(this);
      4 
      5 let dn1 = new Intl.DisplayNames("en", {type: "month", calendar: "gregory"});
      6 assertEq(dn1.of(1), "January");
      7 assertEq(dn1.resolvedOptions().calendar, "gregory");
      8 
      9 let dn2 = new Intl.DisplayNames("en", {type: "month", calendar: "hebrew"});
     10 assertEq(dn2.of(1), "Tishri");
     11 assertEq(dn2.resolvedOptions().calendar, "hebrew");
     12 
     13 let dn3 = new Intl.DisplayNames("en", {type: "month", calendar: "islamicc"});
     14 assertEq(dn3.of(1), "Muharram");
     15 assertEq(dn3.resolvedOptions().calendar, "islamic-civil");
     16 
     17 if (typeof reportCompare === "function")
     18  reportCompare(true, true);