tor-browser

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

relativetimeformat.js (559B)


      1 // |reftest| skip-if(!this.hasOwnProperty("Intl"))
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 // Tests the format function with a diverse set of locales and options.
      7 
      8 var rtf;
      9 
     10 rtf = new Intl.RelativeTimeFormat("en-us");
     11 assertEq(rtf.resolvedOptions().locale, "en-US");
     12 assertEq(rtf.resolvedOptions().style, "long");
     13 assertEq(rtf.resolvedOptions().numeric, "always");
     14 
     15 reportCompare(0, 0, 'ok');