diff options
Diffstat (limited to 'test/suite/ch15/15.5/15.5.5/15.5.5.2')
14 files changed, 333 insertions, 309 deletions
diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-1-1.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-1-1.js index 054db6236..bbd9c08be 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-1-1.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-1-1.js @@ -1,23 +1,25 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-1-1.js
- * @description String object supports bracket notation to lookup of data properties
- */
-
-
-function testcase() {
- var s = new String("hello world");
- s.foo = 1;
-
- if (s["foo"] === 1) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String object supports bracket notation to lookup of data + properties +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = new String("hello world"); + s.foo = 1; + + if (s["foo"] === 1) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-1-2.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-1-2.js index 29cd56e9f..aed4de489 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-1-2.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-1-2.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-1-2.js
- * @description String value supports bracket notation to lookup data properties
- */
-
-
-function testcase() {
- var s = String("hello world");
-
- if (s["foo"] === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: String value supports bracket notation to lookup data properties +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = String("hello world"); + + if (s["foo"] === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-1.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-1.js index 676b19df4..4df659061 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-1.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-1.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-1.js
- * @description String object indexing returns undefined for missing data properties
- */
-
-
-function testcase() {
- var s = new String("hello world");
-
- if (s["foo"] === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String object indexing returns undefined for missing data + properties +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = new String("hello world"); + + if (s["foo"] === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-2.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-2.js index d21cd552e..a262a0aaa 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-2.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-2.js @@ -1,22 +1,22 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-2.js
- * @description String value indexing returns undefined for missing data properties
- */
-
-
-function testcase() {
- var s = String("hello world");
-
- if (s["foo"] === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: String value indexing returns undefined for missing data properties +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = String("hello world"); + + if (s["foo"] === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-3.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-3.js index 2f4e0fc80..7d6b5dc2a 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-3.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-3.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-3.js
- * @description String object indexing returns undefined if the numeric index (NaN) is not an array index
- */
-
-
-function testcase() {
- var s = new String("hello world");
-
- if (s[NaN] === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String object indexing returns undefined if the numeric index + (NaN) is not an array index +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = new String("hello world"); + + if (s[NaN] === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-4.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-4.js index 3e014dccc..08e3a0fce 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-4.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-4.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-4.js
- * @description String object indexing returns undefined if the numeric index (Infinity) is not an array index
- */
-
-
-function testcase() {
- var s = new String("hello world");
-
- if (s[Infinity] === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String object indexing returns undefined if the numeric index + (Infinity) is not an array index +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = new String("hello world"); + + if (s[Infinity] === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-5.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-5.js index df7af1bab..054113a11 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-5.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-5.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-5.js
- * @description String object indexing returns undefined if the numeric index ( 2^32-1) is not an array index
- */
-
-
-function testcase() {
- var s = new String("hello world");
-
- if (s[Math.pow(2, 32)-1]===undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String object indexing returns undefined if the numeric index ( + 2^32-1) is not an array index +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = new String("hello world"); + + if (s[Math.pow(2, 32)-1]===undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-6.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-6.js index 0ff361ca6..0b52dc662 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-6.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-6.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-6.js
- * @description String value indexing returns undefined if the numeric index (NaN) is not an array index
- */
-
-
-function testcase() {
- var s = String("hello world");
-
- if (s[NaN] === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String value indexing returns undefined if the numeric index (NaN) + is not an array index +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = String("hello world"); + + if (s[NaN] === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-7.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-7.js index 1d30edcf4..c2543eea0 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-7.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-7.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-7.js
- * @description String value indexing returns undefined if the numeric index (Infinity) is not an array index
- */
-
-
-function testcase() {
- var s = String("hello world");
-
- if (s[Infinity] === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String value indexing returns undefined if the numeric index + (Infinity) is not an array index +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = String("hello world"); + + if (s[Infinity] === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-8.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-8.js index d2363cd13..d8aa657c2 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-8.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-8.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-3-8.js
- * @description String value indexing returns undefined if the numeric index ( >= 2^32-1) is not an array index
- */
-
-
-function testcase() {
- var s = String("hello world");
-
- if (s[Math.pow(2, 32)-1]===undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String value indexing returns undefined if the numeric index ( >= + 2^32-1) is not an array index +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = String("hello world"); + + if (s[Math.pow(2, 32)-1]===undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-1.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-1.js index fbc563c11..e5887888a 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-1.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-1.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-1.js
- * @description String object indexing returns undefined if the numeric index is less than 0
- */
-
-
-function testcase() {
- var s = new String("hello world");
-
- if (s[-1] === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String object indexing returns undefined if the numeric index is + less than 0 +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = new String("hello world"); + + if (s[-1] === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-2.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-2.js index 3d0a47288..1d77026f3 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-2.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-2.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-2.js
- * @description String value indexing returns undefined if the numeric index is less than 0
- */
-
-
-function testcase() {
- var s = String("hello world");
-
- if (s[-1] === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String value indexing returns undefined if the numeric index is + less than 0 +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = String("hello world"); + + if (s[-1] === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-3.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-3.js index 07bb26557..efb3cd40c 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-3.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-3.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-3.js
- * @description String object indexing returns undefined if the numeric index is greater than the string length
- */
-
-
-function testcase() {
- var s = new String("hello world");
-
- if (s[11] === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String object indexing returns undefined if the numeric index is + greater than the string length +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = new String("hello world"); + + if (s[11] === undefined) { + return true; + } + } +runTestCase(testcase); diff --git a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-4.js b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-4.js index 712f38737..650200d7a 100644 --- a/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-4.js +++ b/test/suite/ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-4.js @@ -1,22 +1,24 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
- * notation to look up non numeric property names.
- *
- * @path ch15/15.5/15.5.5/15.5.5.2/15.5.5.5.2-7-4.js
- * @description String value indexing returns undefined if the numeric index is greater than the string length
- */
-
-
-function testcase() {
- var s = String("hello world");
-
- if (s[11] === undefined) {
- return true;
- }
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +info: > + 15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing + notation to look up non numeric property names. +description: > + String value indexing returns undefined if the numeric index is + greater than the string length +includes: [runTestCase.js] +---*/ + +function testcase() { + var s = String("hello world"); + + if (s[11] === undefined) { + return true; + } + } +runTestCase(testcase); |