summaryrefslogtreecommitdiff
path: root/test/intl402
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2017-12-21 12:08:28 -0800
committerRick Waldron <waldron.rick@gmail.com>2017-12-21 16:46:56 -0500
commitc81370348d9dffa6f43373c4ed959a4d25970f21 (patch)
treea2c1ba2c192b6f2fed703355e7c2d3b5ad6edd74 /test/intl402
parentecf814bb4cfc0aa556bac79f1fbd801644b8a64e (diff)
downloadqtdeclarative-testsuites-c81370348d9dffa6f43373c4ed959a4d25970f21.tar.gz
No longer use testBuiltInObject for built-in objects
Diffstat (limited to 'test/intl402')
-rw-r--r--test/intl402/Collator/prototype/compare/10.3.2_1_a_L15.js2
-rw-r--r--test/intl402/Collator/prototype/compare/10.3.2_L15.js2
-rw-r--r--test/intl402/Collator/prototype/resolvedOptions/10.3.3_L15.js2
-rw-r--r--test/intl402/Collator/supportedLocalesOf/10.2.2_L15.js2
-rw-r--r--test/intl402/Date/prototype/toLocaleDateString/13.3.2_L15.js2
-rw-r--r--test/intl402/Date/prototype/toLocaleString/13.3.1_L15.js2
-rw-r--r--test/intl402/Date/prototype/toLocaleTimeString/13.3.3_L15.js2
-rw-r--r--test/intl402/DateTimeFormat/prototype/format/12.3.2_1_a_L15.js2
-rw-r--r--test/intl402/DateTimeFormat/prototype/format/12.3.2_L15.js2
-rw-r--r--test/intl402/DateTimeFormat/prototype/resolvedOptions/12.3.3_L15.js2
-rw-r--r--test/intl402/DateTimeFormat/supportedLocalesOf/12.2.2_L15.js2
-rw-r--r--test/intl402/Intl/8.0_L15.js14
-rw-r--r--test/intl402/Number/prototype/toLocaleString/13.2.1_L15.js2
-rw-r--r--test/intl402/NumberFormat/prototype/format/11.3.2_1_a_L15.js2
-rw-r--r--test/intl402/NumberFormat/prototype/format/11.3.2_L15.js2
-rw-r--r--test/intl402/NumberFormat/prototype/resolvedOptions/11.3.3_L15.js2
-rw-r--r--test/intl402/NumberFormat/supportedLocalesOf/11.2.2_L15.js2
-rw-r--r--test/intl402/PluralRules/prototype/resolvedOptions/builtins.js2
-rw-r--r--test/intl402/PluralRules/supportedLocalesOf/supportedLocalesOf.js2
-rw-r--r--test/intl402/String/prototype/localeCompare/13.1.1_L15.js2
20 files changed, 30 insertions, 22 deletions
diff --git a/test/intl402/Collator/prototype/compare/10.3.2_1_a_L15.js b/test/intl402/Collator/prototype/compare/10.3.2_1_a_L15.js
index 09ffcf2cc..db72d12a2 100644
--- a/test/intl402/Collator/prototype/compare/10.3.2_1_a_L15.js
+++ b/test/intl402/Collator/prototype/compare/10.3.2_1_a_L15.js
@@ -12,4 +12,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(new Intl.Collator().compare, true);
+testBuiltInObject(new Intl.Collator().compare);
diff --git a/test/intl402/Collator/prototype/compare/10.3.2_L15.js b/test/intl402/Collator/prototype/compare/10.3.2_L15.js
index 9e35654e7..7f0292455 100644
--- a/test/intl402/Collator/prototype/compare/10.3.2_L15.js
+++ b/test/intl402/Collator/prototype/compare/10.3.2_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.Collator.prototype, "compare").get , true);
+testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.Collator.prototype, "compare").get);
diff --git a/test/intl402/Collator/prototype/resolvedOptions/10.3.3_L15.js b/test/intl402/Collator/prototype/resolvedOptions/10.3.3_L15.js
index f41bcffc3..51cfef46c 100644
--- a/test/intl402/Collator/prototype/resolvedOptions/10.3.3_L15.js
+++ b/test/intl402/Collator/prototype/resolvedOptions/10.3.3_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Intl.Collator.prototype.resolvedOptions, true);
+testBuiltInObject(Intl.Collator.prototype.resolvedOptions);
diff --git a/test/intl402/Collator/supportedLocalesOf/10.2.2_L15.js b/test/intl402/Collator/supportedLocalesOf/10.2.2_L15.js
index 00618f28f..61e057c6a 100644
--- a/test/intl402/Collator/supportedLocalesOf/10.2.2_L15.js
+++ b/test/intl402/Collator/supportedLocalesOf/10.2.2_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Intl.Collator.supportedLocalesOf, true);
+testBuiltInObject(Intl.Collator.supportedLocalesOf);
diff --git a/test/intl402/Date/prototype/toLocaleDateString/13.3.2_L15.js b/test/intl402/Date/prototype/toLocaleDateString/13.3.2_L15.js
index bd882610d..c8c9a939d 100644
--- a/test/intl402/Date/prototype/toLocaleDateString/13.3.2_L15.js
+++ b/test/intl402/Date/prototype/toLocaleDateString/13.3.2_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Date.prototype.toLocaleDateString, true);
+testBuiltInObject(Date.prototype.toLocaleDateString);
diff --git a/test/intl402/Date/prototype/toLocaleString/13.3.1_L15.js b/test/intl402/Date/prototype/toLocaleString/13.3.1_L15.js
index 924b02e59..d22b9ad9d 100644
--- a/test/intl402/Date/prototype/toLocaleString/13.3.1_L15.js
+++ b/test/intl402/Date/prototype/toLocaleString/13.3.1_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Date.prototype.toLocaleString, true);
+testBuiltInObject(Date.prototype.toLocaleString);
diff --git a/test/intl402/Date/prototype/toLocaleTimeString/13.3.3_L15.js b/test/intl402/Date/prototype/toLocaleTimeString/13.3.3_L15.js
index 386d23a46..4064f756d 100644
--- a/test/intl402/Date/prototype/toLocaleTimeString/13.3.3_L15.js
+++ b/test/intl402/Date/prototype/toLocaleTimeString/13.3.3_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Date.prototype.toLocaleTimeString, true);
+testBuiltInObject(Date.prototype.toLocaleTimeString);
diff --git a/test/intl402/DateTimeFormat/prototype/format/12.3.2_1_a_L15.js b/test/intl402/DateTimeFormat/prototype/format/12.3.2_1_a_L15.js
index ae697b996..42facb22d 100644
--- a/test/intl402/DateTimeFormat/prototype/format/12.3.2_1_a_L15.js
+++ b/test/intl402/DateTimeFormat/prototype/format/12.3.2_1_a_L15.js
@@ -12,4 +12,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(new Intl.DateTimeFormat().format, true);
+testBuiltInObject(new Intl.DateTimeFormat().format);
diff --git a/test/intl402/DateTimeFormat/prototype/format/12.3.2_L15.js b/test/intl402/DateTimeFormat/prototype/format/12.3.2_L15.js
index b32367631..280ca055f 100644
--- a/test/intl402/DateTimeFormat/prototype/format/12.3.2_L15.js
+++ b/test/intl402/DateTimeFormat/prototype/format/12.3.2_L15.js
@@ -12,4 +12,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, "format").get , true);
+testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.DateTimeFormat.prototype, "format").get);
diff --git a/test/intl402/DateTimeFormat/prototype/resolvedOptions/12.3.3_L15.js b/test/intl402/DateTimeFormat/prototype/resolvedOptions/12.3.3_L15.js
index cb294dd70..8a9f5db47 100644
--- a/test/intl402/DateTimeFormat/prototype/resolvedOptions/12.3.3_L15.js
+++ b/test/intl402/DateTimeFormat/prototype/resolvedOptions/12.3.3_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Intl.DateTimeFormat.prototype.resolvedOptions, true);
+testBuiltInObject(Intl.DateTimeFormat.prototype.resolvedOptions);
diff --git a/test/intl402/DateTimeFormat/supportedLocalesOf/12.2.2_L15.js b/test/intl402/DateTimeFormat/supportedLocalesOf/12.2.2_L15.js
index 70f8d8a5e..6ead0ebc8 100644
--- a/test/intl402/DateTimeFormat/supportedLocalesOf/12.2.2_L15.js
+++ b/test/intl402/DateTimeFormat/supportedLocalesOf/12.2.2_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Intl.DateTimeFormat.supportedLocalesOf, true);
+testBuiltInObject(Intl.DateTimeFormat.supportedLocalesOf);
diff --git a/test/intl402/Intl/8.0_L15.js b/test/intl402/Intl/8.0_L15.js
index 984063afc..e74fb9403 100644
--- a/test/intl402/Intl/8.0_L15.js
+++ b/test/intl402/Intl/8.0_L15.js
@@ -8,8 +8,16 @@ description: >
defined by the introduction of chapter 17 of the ECMAScript
Language Specification.
author: Norbert Lindenberg
-includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(this.Intl, false);
-testBuiltInObject(Intl, false);
+assert.sameValue(Object.prototype.toString.call(Intl), "[object Object]",
+ "The [[Class]] internal property of a built-in non-function object must be " +
+ "\"Object\".");
+
+assert(Object.isExtensible(Intl), "Built-in objects must be extensible.");
+
+assert.sameValue(Object.getPrototypeOf(Intl), Object.prototype,
+ "The [[Prototype]] of Intl is %ObjectPrototype%.");
+
+assert.sameValue(this.Intl, Intl,
+ "%Intl% is accessible as a property of the global object.");
diff --git a/test/intl402/Number/prototype/toLocaleString/13.2.1_L15.js b/test/intl402/Number/prototype/toLocaleString/13.2.1_L15.js
index 2e426d1a9..6858f76d2 100644
--- a/test/intl402/Number/prototype/toLocaleString/13.2.1_L15.js
+++ b/test/intl402/Number/prototype/toLocaleString/13.2.1_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Number.prototype.toLocaleString, true);
+testBuiltInObject(Number.prototype.toLocaleString);
diff --git a/test/intl402/NumberFormat/prototype/format/11.3.2_1_a_L15.js b/test/intl402/NumberFormat/prototype/format/11.3.2_1_a_L15.js
index 4bc4a131d..827b7d6fe 100644
--- a/test/intl402/NumberFormat/prototype/format/11.3.2_1_a_L15.js
+++ b/test/intl402/NumberFormat/prototype/format/11.3.2_1_a_L15.js
@@ -12,4 +12,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(new Intl.NumberFormat().format, true);
+testBuiltInObject(new Intl.NumberFormat().format);
diff --git a/test/intl402/NumberFormat/prototype/format/11.3.2_L15.js b/test/intl402/NumberFormat/prototype/format/11.3.2_L15.js
index 55221edc3..8850dc0cb 100644
--- a/test/intl402/NumberFormat/prototype/format/11.3.2_L15.js
+++ b/test/intl402/NumberFormat/prototype/format/11.3.2_L15.js
@@ -12,4 +12,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, "format").get , true);
+testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, "format").get);
diff --git a/test/intl402/NumberFormat/prototype/resolvedOptions/11.3.3_L15.js b/test/intl402/NumberFormat/prototype/resolvedOptions/11.3.3_L15.js
index 9b85acfad..237aae759 100644
--- a/test/intl402/NumberFormat/prototype/resolvedOptions/11.3.3_L15.js
+++ b/test/intl402/NumberFormat/prototype/resolvedOptions/11.3.3_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Intl.NumberFormat.prototype.resolvedOptions, true);
+testBuiltInObject(Intl.NumberFormat.prototype.resolvedOptions);
diff --git a/test/intl402/NumberFormat/supportedLocalesOf/11.2.2_L15.js b/test/intl402/NumberFormat/supportedLocalesOf/11.2.2_L15.js
index cbb2420c5..c3c362e56 100644
--- a/test/intl402/NumberFormat/supportedLocalesOf/11.2.2_L15.js
+++ b/test/intl402/NumberFormat/supportedLocalesOf/11.2.2_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Intl.NumberFormat.supportedLocalesOf, true);
+testBuiltInObject(Intl.NumberFormat.supportedLocalesOf);
diff --git a/test/intl402/PluralRules/prototype/resolvedOptions/builtins.js b/test/intl402/PluralRules/prototype/resolvedOptions/builtins.js
index 240596c36..2649acf10 100644
--- a/test/intl402/PluralRules/prototype/resolvedOptions/builtins.js
+++ b/test/intl402/PluralRules/prototype/resolvedOptions/builtins.js
@@ -11,4 +11,4 @@ author: Zibi Braniecki
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Intl.PluralRules.prototype.resolvedOptions, true);
+testBuiltInObject(Intl.PluralRules.prototype.resolvedOptions);
diff --git a/test/intl402/PluralRules/supportedLocalesOf/supportedLocalesOf.js b/test/intl402/PluralRules/supportedLocalesOf/supportedLocalesOf.js
index 1016f7ac6..cbee32b4b 100644
--- a/test/intl402/PluralRules/supportedLocalesOf/supportedLocalesOf.js
+++ b/test/intl402/PluralRules/supportedLocalesOf/supportedLocalesOf.js
@@ -11,4 +11,4 @@ author: Zibi Braniecki
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(Intl.PluralRules.supportedLocalesOf, true);
+testBuiltInObject(Intl.PluralRules.supportedLocalesOf);
diff --git a/test/intl402/String/prototype/localeCompare/13.1.1_L15.js b/test/intl402/String/prototype/localeCompare/13.1.1_L15.js
index c2d50ca25..d7cfdff79 100644
--- a/test/intl402/String/prototype/localeCompare/13.1.1_L15.js
+++ b/test/intl402/String/prototype/localeCompare/13.1.1_L15.js
@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js]
---*/
-testBuiltInObject(String.prototype.localeCompare, true);
+testBuiltInObject(String.prototype.localeCompare);