| Index: test/webkit/array-indexing.js
|
| diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/array-indexing.js
|
| similarity index 83%
|
| copy from test/webkit/concat-while-having-a-bad-time.js
|
| copy to test/webkit/array-indexing.js
|
| index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..d4e751bf1e6a117cf25523b7d500d228c58413c9 100644
|
| --- a/test/webkit/concat-while-having-a-bad-time.js
|
| +++ b/test/webkit/array-indexing.js
|
| @@ -22,10 +22,16 @@
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| description(
|
| -"Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating."
|
| +"This test checks that array accessing doesn't do the wrong thing for negative indices"
|
| );
|
| +var a = [];
|
| +a[-5] = true;
|
| +shouldBe('a.length', '0');
|
| +shouldBe('a["-5"]', 'a[-5]');
|
|
|
| -Object.defineProperty(Array.prototype, 0, { writable: false });
|
| -shouldBe("[42].concat()", "[42]");
|
| -
|
| +// Just some bounds paranoia
|
| +a = [1,2,3,4];
|
| +shouldBe('a[4]', 'undefined');
|
|
|
| +a = [];
|
| +for (var i = 0; i > -1000; i--) a[i] = i;
|
|
|