Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Unified Diff: test/mjsunit/es6/array-iterator.js

Issue 344223006: Simplify array iterator tests (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/array-iterator.js
diff --git a/test/mjsunit/es6/array-iterator.js b/test/mjsunit/es6/array-iterator.js
index 63a7415b966f9bbe9fbdc5266fc5b5c4447238ff..b24ee5712fb71c595014189b2258a776e80381a7 100644
--- a/test/mjsunit/es6/array-iterator.js
+++ b/test/mjsunit/es6/array-iterator.js
@@ -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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698