diff --git a/test/intl402/DateTimeFormat/prototype/resolvedOptions/order-dayPeriod.js b/test/intl402/DateTimeFormat/prototype/resolvedOptions/order-dayPeriod.js index 9cda51523d..9b89cbcda5 100644 --- a/test/intl402/DateTimeFormat/prototype/resolvedOptions/order-dayPeriod.js +++ b/test/intl402/DateTimeFormat/prototype/resolvedOptions/order-dayPeriod.js @@ -4,8 +4,8 @@ /*--- esid: sec-intl.datetimeformat.prototype.resolvedoptions description: Verifies the property order for the object returned by resolvedOptions(). -includes: [compareArray.js] -features: [Intl.DateTimeFormat-dayPeriod,Intl.DateTimeFormat-fractionalSecondDigits] +includes: [arrayContains.js] +features: [Intl.DateTimeFormat-dayPeriod] ---*/ const options = new Intl.DateTimeFormat([], { @@ -24,7 +24,14 @@ const expected = [ "dayPeriod", "hour", "minute", - "fractionalSecondDigits", ]; -assert.compareArray(Object.getOwnPropertyNames(options), expected); +let actual = Object.getOwnPropertyNames(options); + +// Ensure all expected items are in actual and also allow other property +// implemented in other new proposal. +assert(arrayContains(actual, expected)); +for (var i = 1; i < expected.length; i++) { + // Ensure the order as expected but allow additional new property in between + assert(actual.indexOf(expected[i-1]) < actual.indexOf(expected[i])); +}