summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/intl402/RelativeTimeFormat/instance
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/intl402/RelativeTimeFormat/instance')
-rw-r--r--js/src/tests/test262/intl402/RelativeTimeFormat/instance/browser.js0
-rw-r--r--js/src/tests/test262/intl402/RelativeTimeFormat/instance/extensibility.js22
-rw-r--r--js/src/tests/test262/intl402/RelativeTimeFormat/instance/prototype.js22
-rw-r--r--js/src/tests/test262/intl402/RelativeTimeFormat/instance/shell.js0
4 files changed, 44 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/RelativeTimeFormat/instance/browser.js b/js/src/tests/test262/intl402/RelativeTimeFormat/instance/browser.js
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/js/src/tests/test262/intl402/RelativeTimeFormat/instance/browser.js
diff --git a/js/src/tests/test262/intl402/RelativeTimeFormat/instance/extensibility.js b/js/src/tests/test262/intl402/RelativeTimeFormat/instance/extensibility.js
new file mode 100644
index 0000000000..67ad4b9b83
--- /dev/null
+++ b/js/src/tests/test262/intl402/RelativeTimeFormat/instance/extensibility.js
@@ -0,0 +1,22 @@
+// Copyright 2018 Igalia, S.L. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-Intl.RelativeTimeFormat
+description: >
+ Intl.RelativeTimeFormat instance object extensibility
+info: |
+ 17 ECMAScript Standard Built-in Objects:
+
+ Unless specified otherwise, the [[Extensible]] internal slot
+ of a built-in object initially has the value true.
+features: [Intl.RelativeTimeFormat]
+---*/
+
+assert.sameValue(
+ Object.isExtensible(new Intl.RelativeTimeFormat()),
+ true,
+ "Object.isExtensible(new Intl.RelativeTimeFormat()) returns true"
+);
+
+reportCompare(0, 0);
diff --git a/js/src/tests/test262/intl402/RelativeTimeFormat/instance/prototype.js b/js/src/tests/test262/intl402/RelativeTimeFormat/instance/prototype.js
new file mode 100644
index 0000000000..f874db89f6
--- /dev/null
+++ b/js/src/tests/test262/intl402/RelativeTimeFormat/instance/prototype.js
@@ -0,0 +1,22 @@
+// Copyright 2018 Igalia, S.L. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-Intl.RelativeTimeFormat
+description: >
+ Intl.RelativeTimeFormat instance object is created from %RelativeTimeFormatPrototype%.
+info: |
+ Intl.RelativeTimeFormat ([ locales [ , options ]])
+
+ 2. Let relativeTimeFormat be ! OrdinaryCreateFromConstructor(NewTarget, "%RelativeTimeFormatPrototype%").
+features: [Intl.RelativeTimeFormat]
+---*/
+
+const value = new Intl.RelativeTimeFormat();
+assert.sameValue(
+ Object.getPrototypeOf(value),
+ Intl.RelativeTimeFormat.prototype,
+ "Object.getPrototypeOf(value) equals the value of Intl.RelativeTimeFormat.prototype"
+);
+
+reportCompare(0, 0);
diff --git a/js/src/tests/test262/intl402/RelativeTimeFormat/instance/shell.js b/js/src/tests/test262/intl402/RelativeTimeFormat/instance/shell.js
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/js/src/tests/test262/intl402/RelativeTimeFormat/instance/shell.js