Commit 8239897e authored by wingo@igalia.com's avatar wingo@igalia.com

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
parent e8d4bfc8
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment