summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/intl402/ListFormat/constructor/supportedLocalesOf/branding.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/intl402/ListFormat/constructor/supportedLocalesOf/branding.js')
-rw-r--r--js/src/tests/test262/intl402/ListFormat/constructor/supportedLocalesOf/branding.js31
1 files changed, 31 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/ListFormat/constructor/supportedLocalesOf/branding.js b/js/src/tests/test262/intl402/ListFormat/constructor/supportedLocalesOf/branding.js
new file mode 100644
index 0000000000..dd28fcf8d6
--- /dev/null
+++ b/js/src/tests/test262/intl402/ListFormat/constructor/supportedLocalesOf/branding.js
@@ -0,0 +1,31 @@
+// 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.supportedLocalesOf
+description: >
+ Verifies there's no branding check for Intl.ListFormat.supportedLocalesOf().
+info: |
+ Intl.ListFormat.supportedLocalesOf ( locales [, options ])
+features: [Intl.ListFormat]
+---*/
+
+const fn = Intl.ListFormat.supportedLocalesOf;
+const thisValues = [
+ undefined,
+ null,
+ true,
+ "",
+ Symbol(),
+ 1,
+ {},
+ Intl.ListFormat,
+ Intl.ListFormat.prototype,
+];
+
+for (const thisValue of thisValues) {
+ const result = fn.call(thisValue);
+ assert.sameValue(Array.isArray(result), true);
+}
+
+reportCompare(0, 0);