obsoleted test

This commit is contained in:
Frank Yung-Fong Tang 2019-04-02 10:00:52 -07:00 committed by GitHub
parent b5d5241dbe
commit 03c605fe3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 22 deletions

View File

@ -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.`);
}