From d15e0f58fcf974ab85a8f402f1a806942817187a Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Fri, 10 Aug 2018 17:46:39 +0200 Subject: [PATCH] Intl.RelativeTimeFormat: Test some plausible but unsupported unit arguments. --- .../prototype/format/unit-invalid.js | 10 ++++++++++ .../prototype/formatToParts/unit-invalid.js | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/test/intl402/RelativeTimeFormat/prototype/format/unit-invalid.js b/test/intl402/RelativeTimeFormat/prototype/format/unit-invalid.js index 53d3729b31..aa518e3bff 100644 --- a/test/intl402/RelativeTimeFormat/prototype/format/unit-invalid.js +++ b/test/intl402/RelativeTimeFormat/prototype/format/unit-invalid.js @@ -33,6 +33,16 @@ const values = [ "MONTH", "QUARTER", "YEAR", + "decade", + "decades", + "century", + "centuries", + "millisecond", + "milliseconds", + "microsecond", + "microseconds", + "nanosecond", + "nanoseconds", ]; for (const value of values) { diff --git a/test/intl402/RelativeTimeFormat/prototype/formatToParts/unit-invalid.js b/test/intl402/RelativeTimeFormat/prototype/formatToParts/unit-invalid.js index fa89d07b94..77c209a5b7 100644 --- a/test/intl402/RelativeTimeFormat/prototype/formatToParts/unit-invalid.js +++ b/test/intl402/RelativeTimeFormat/prototype/formatToParts/unit-invalid.js @@ -33,6 +33,16 @@ const values = [ "MONTH", "QUARTER", "YEAR", + "decade", + "decades", + "century", + "centuries", + "millisecond", + "milliseconds", + "microsecond", + "microseconds", + "nanosecond", + "nanoseconds", ]; for (const value of values) {