tor-browser

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

usage-de.js (616B)


      1 // Copyright 2018 Igalia, S.L. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-initializecollator
      6 description: Checks the behavior of search and sort in German.
      7 includes: [compareArray.js]
      8 locale: [de]
      9 ---*/
     10 
     11 assert.compareArray(["AE", "\u00C4"].sort(new Intl.Collator("de", {usage: "sort"}).compare),
     12                    ["\u00C4", "AE"],
     13                    "sort");
     14 assert.compareArray(["AE", "\u00C4"].sort(new Intl.Collator("de", {usage: "search"}).compare),
     15                    ["AE", "\u00C4"],
     16                    "search");
     17 
     18 reportCompare(0, 0);