aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch15/15.2/15.2.4/15.2.4.3
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch15/15.2/15.2.4/15.2.4.3')
-rw-r--r--test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A1.js13
-rw-r--r--test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A10.js16
-rw-r--r--test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A11.js11
-rw-r--r--test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A12.js12
-rw-r--r--test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A13.js12
-rw-r--r--test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js13
-rw-r--r--test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A7.js14
-rw-r--r--test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A8.js16
-rw-r--r--test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A9.js18
9 files changed, 63 insertions, 62 deletions
diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A1.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A1.js
index f849be7de..1b8df01a9 100644
--- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A1.js
+++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * toLocaleString function returns the result of calling toString()
- *
- * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A1.js
- * @description Checking the type of Object.prototype.toLocaleString and the returned result
- */
+/*---
+info: toLocaleString function returns the result of calling toString()
+description: >
+ Checking the type of Object.prototype.toLocaleString and the
+ returned result
+---*/
//CHECK#1
if (typeof Object.prototype.toLocaleString !== "function") {
@@ -22,4 +22,3 @@ if (Object.prototype.toLocaleString() !== Object.prototype.toString()) {
if ({}.toLocaleString()!=={}.toString()) {
$ERROR('#2: toLocaleString function returns the result of calling toString()');
}
-
diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A10.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A10.js
index e6f73800a..c0101d3bb 100644
--- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A10.js
+++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A10.js
@@ -1,12 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The Object.prototype.toLocaleString.length property has the attribute ReadOnly
- *
- * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A10.js
- * @description Checking if varying the Object.prototype.toLocaleString.length property fails
- */
+/*---
+info: >
+ The Object.prototype.toLocaleString.length property has the attribute
+ ReadOnly
+description: >
+ Checking if varying the Object.prototype.toLocaleString.length
+ property fails
+includes: [$FAIL.js]
+---*/
//CHECK#1
if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) {
@@ -21,4 +24,3 @@ Object.prototype.toLocaleString.length = function(){return "shifted";};
if (Object.prototype.toLocaleString.length !== obj) {
$ERROR('#2: the Object.prototype.toLocaleString length property has the attributes ReadOnly.');
}
-
diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A11.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A11.js
index 0d0f4108e..8c43b8d70 100644
--- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A11.js
+++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A11.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The length property of the toLocaleString method is 0
- *
- * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A11.js
- * @description Checking the Object.prototype.toLocaleString.length
- */
+/*---
+info: The length property of the toLocaleString method is 0
+description: Checking the Object.prototype.toLocaleString.length
+---*/
//CHECK#1
if (!(Object.prototype.toLocaleString.hasOwnProperty("length"))) {
@@ -17,4 +15,3 @@ if (!(Object.prototype.toLocaleString.hasOwnProperty("length"))) {
if (Object.prototype.toLocaleString.length !== 0) {
$ERROR('#2: The length property of the toLocaleString method is 0');
}
-
diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A12.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A12.js
index 72f142264..2b114bd9b 100644
--- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A12.js
+++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A12.js
@@ -1,11 +1,11 @@
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A12.js
- * @description Let O be the result of calling ToObject passing the this value as the argument.
- * @negative
- */
+/*---
+description: >
+ Let O be the result of calling ToObject passing the this value as
+ the argument.
+flags: [negative]
+---*/
Object.prototype.toLocaleString.call(undefined);
-
diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A13.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A13.js
index c5570753c..68088b6e7 100644
--- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A13.js
+++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A13.js
@@ -1,11 +1,11 @@
// Copyright 2011 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A13.js
- * @description Let O be the result of calling ToObject passing the this value as the argument.
- * @negative
- */
+/*---
+description: >
+ Let O be the result of calling ToObject passing the this value as
+ the argument.
+flags: [negative]
+---*/
Object.prototype.toLocaleString.call(null);
-
diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js
index adb3ce993..a110e74a8 100644
--- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js
+++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js
@@ -1,16 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Object.prototype.toLocaleString has not prototype property
- *
- * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A6.js
- * @description Checking if obtaining the prototype property of Object.prototype.toLocaleString fails
- */
+/*---
+info: Object.prototype.toLocaleString has not prototype property
+description: >
+ Checking if obtaining the prototype property of
+ Object.prototype.toLocaleString fails
+---*/
//CHECK#1
if (Object.prototype.toLocaleString.prototype !== undefined) {
$ERROR('#1: Object.prototype.toLocaleString has not prototype property'+Object.prototype.toLocaleString.prototype);
}
//
-
diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A7.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A7.js
index 4a15a4413..5d3142716 100644
--- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A7.js
+++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A7.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Object.prototype.toLocaleString can't be used as a constructor
- *
- * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A7.js
- * @description Checking if creating "new Object.prototype.toLocaleString" fails
- */
+/*---
+info: Object.prototype.toLocaleString can't be used as a constructor
+description: Checking if creating "new Object.prototype.toLocaleString" fails
+includes:
+ - $PRINT.js
+ - $FAIL.js
+---*/
var FACTORY = Object.prototype.toLocaleString;
@@ -17,4 +18,3 @@ try {
$PRINT(e);
}
-
diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A8.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A8.js
index 646bcb400..846e6110a 100644
--- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A8.js
+++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A8.js
@@ -1,12 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The Object.prototype.toLocaleString.length property has the attribute DontEnum
- *
- * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A8.js
- * @description Checking if enumerating the Object.prototype.toLocaleString.length property fails
- */
+/*---
+info: >
+ The Object.prototype.toLocaleString.length property has the attribute
+ DontEnum
+description: >
+ Checking if enumerating the Object.prototype.toLocaleString.length
+ property fails
+includes: [$FAIL.js]
+---*/
//CHECK#0
if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) {
@@ -25,4 +28,3 @@ for (p in Object.prototype.toLocaleString){
$ERROR('#2: the Object.prototype.toLocaleString.length property has the attributes DontEnum');
}
//
-
diff --git a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A9.js b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A9.js
index d5929c1b7..80b40d93e 100644
--- a/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A9.js
+++ b/test/suite/ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A9.js
@@ -1,13 +1,16 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The Object.prototype.toLocaleString.length property has the attribute DontDelete
- *
- * @path ch15/15.2/15.2.4/15.2.4.3/S15.2.4.3_A9.js
- * @description Checknig if deleting of the Object.prototype.toLocaleString.length property fails
- * @noStrict
- */
+/*---
+info: >
+ The Object.prototype.toLocaleString.length property has the attribute
+ DontDelete
+description: >
+ Checknig if deleting of the Object.prototype.toLocaleString.length
+ property fails
+flags: [noStrict]
+includes: [$FAIL.js]
+---*/
//CHECK#0
if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) {
@@ -23,4 +26,3 @@ if (delete Object.prototype.toLocaleString.length) {
if (!(Object.prototype.toLocaleString.hasOwnProperty('length'))) {
$FAIL('#2: The Object.prototype.toLocaleString.length property has the attributes DontDelete');
}
-