summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Intl/DateTimeFormat/standalone-month.js
blob: c8aab5888e2a6a1c6b89605eef4ddf35934b2a51 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |reftest| skip-if(!this.hasOwnProperty("Intl"))

for (let weekday of ["long", "short", "narrow"]) {
    let dtf = new Intl.DateTimeFormat("en", {weekday});
    let options = dtf.resolvedOptions();

    assertEq(options.weekday, weekday);
}

if (typeof reportCompare === "function")
    reportCompare(0, 0, "ok");