Simplify array iterator tests

R=arv@chromium.org, rossberg@chromium.org
BUG=

Review URL: https://codereview.chromium.org/344223006

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23265 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
wingo@igalia.com 2014-08-21 09:04:24 +00:00
parent e8d4bfc8a3
commit 8239897e5d

View File

@ -175,10 +175,9 @@ function TestForArrayValues() {
assertEquals(8, buffer.length);
for (var i = 0; i < buffer.length - 1; i++) {
for (var i = 0; i < buffer.length; i++) {
assertSame(array[i], buffer[i]);
}
assertTrue(isNaN(buffer[buffer.length - 1]));
}
TestForArrayValues();
@ -210,10 +209,9 @@ function TestForArrayEntries() {
assertEquals(8, buffer.length);
for (var i = 0; i < buffer.length - 1; i++) {
for (var i = 0; i < buffer.length; i++) {
assertSame(array[i], buffer[i][1]);
}
assertTrue(isNaN(buffer[buffer.length - 1][1]));
for (var i = 0; i < buffer.length; i++) {
assertEquals(i, buffer[i][0]);
@ -232,10 +230,9 @@ function TestForArray() {
assertEquals(8, buffer.length);
for (var i = 0; i < buffer.length - 1; i++) {
for (var i = 0; i < buffer.length; i++) {
assertSame(array[i], buffer[i]);
}
assertTrue(isNaN(buffer[buffer.length - 1]));
}
TestForArrayValues();