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

Unified Diff: test/mjsunit/for-in.js

Issue 8888006: Make more JS files beter match the coding standard. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 9 years 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 | « test/mjsunit/extra-commas.js ('k') | test/mjsunit/for-in-delete.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/for-in.js
diff --git a/test/mjsunit/for-in.js b/test/mjsunit/for-in.js
index ab35e95ee3132c35bf20025ea3bbb6d56f5cc240..acda0f1971acf2c85cc359e461c907b4052bc577 100644
--- a/test/mjsunit/for-in.js
+++ b/test/mjsunit/for-in.js
@@ -58,9 +58,9 @@ assertArrayEquals(a, props(o), "charcodes");
var a = [];
assertEquals(0, props(a).length, "proplen0");
-a[Math.pow(2,30)-1] = 0;
+a[Math.pow(2, 30) - 1] = 0;
assertEquals(1, props(a).length, "proplen1");
-a[Math.pow(2,31)-1] = 0;
+a[Math.pow(2, 31) - 1] = 0;
assertEquals(2, props(a).length, "proplen2");
a[1] = 0;
assertEquals(3, props(a).length, "proplen3");
@@ -87,10 +87,10 @@ assertEquals('ab', result, "abgetset");
// Test that for-in in the global scope works with a keyed property as "each".
// Test outside a loop and in a loop for multiple iterations.
-a = [1,2,3,4];
-x = {foo:5, bar:6, zip:7, glep:9, 10:11};
+a = [1, 2, 3, 4];
+x = {foo: 5, bar: 6, zip: 7, glep: 9, 10: 11};
delete x.bar;
-y = {}
+y = {};
for (a[2] in x) {
y[a[2]] = x[a[2]];
@@ -105,7 +105,7 @@ assertEquals("undefined", typeof y[2], "y[2]");
assertEquals("undefined", typeof y[0], "y[0]");
for (i=0 ; i < 3; ++i) {
- y = {}
+ y = {};
for (a[2] in x) {
y[a[2]] = x[a[2]];
« no previous file with comments | « test/mjsunit/extra-commas.js ('k') | test/mjsunit/for-in-delete.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698