summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/intl402/Segmenter/prototype/segment/containing/prop-desc.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/intl402/Segmenter/prototype/segment/containing/prop-desc.js')
-rw-r--r--js/src/tests/test262/intl402/Segmenter/prototype/segment/containing/prop-desc.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/Segmenter/prototype/segment/containing/prop-desc.js b/js/src/tests/test262/intl402/Segmenter/prototype/segment/containing/prop-desc.js
new file mode 100644
index 0000000000..dd39c1862b
--- /dev/null
+++ b/js/src/tests/test262/intl402/Segmenter/prototype/segment/containing/prop-desc.js
@@ -0,0 +1,24 @@
+// |reftest| skip-if(!Intl.Segmenter) -- Intl.Segmenter is not enabled unconditionally
+// Copyright 2018 Igalia, S.L. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-%segmentsprototype%.containing
+description: Checks the "containing" property of the %Segments.prototype% object.
+info: |
+ %Segments.prototype%.containing ( index )
+
+ Unless specified otherwise in this document, the objects, functions, and constructors described in this standard are subject to the generic requirements and restrictions specified for standard built-in ECMAScript objects in the ECMAScript 2019 Language Specification, 10th edition, clause 17, or successor.
+
+features: [Intl.Segmenter]
+---*/
+
+const segment = (new Intl.Segmenter()).segment("");
+assert.sameValue(
+ typeof segment.containing,
+ "function",
+ "typeof %Segments.prototype%.containing is function"
+);
+
+
+reportCompare(0, 0);