mirror of https://github.com/tc39/test262.git
obsoleted test
This commit is contained in:
parent
b5d5241dbe
commit
03c605fe3c
|
@ -1,22 +0,0 @@
|
|||
// Copyright 2018 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-Intl.ListFormat
|
||||
description: Checks handling of invalid value for the type option to the ListFormat constructor.
|
||||
info: |
|
||||
InitializeListFormat (listFormat, locales, options)
|
||||
7. Let type be GetOption(options, "type", "string", « "conjunction", "disjunction", "unit" », "conjunction").
|
||||
features: [Intl.ListFormat]
|
||||
---*/
|
||||
|
||||
const invalidTypes = [
|
||||
"conjunction",
|
||||
"disjunction",
|
||||
];
|
||||
|
||||
for (const type of invalidTypes) {
|
||||
assert.throws(RangeError, function() {
|
||||
new Intl.ListFormat([], { style: "narrow", type });
|
||||
}, `${type} is an invalid type option value when style is narrow.`);
|
||||
}
|
Loading…
Reference in New Issue