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

Unified Diff: test/mjsunit/array-sort.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/array-slice.js ('k') | test/mjsunit/array-splice.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/array-sort.js
diff --git a/test/mjsunit/array-sort.js b/test/mjsunit/array-sort.js
index 3fa623a65601e7f6bc42809ff88fa9c2d008f7b1..585c3b6a73a632edd5938d58b22c4a076154b38d 100644
--- a/test/mjsunit/array-sort.js
+++ b/test/mjsunit/array-sort.js
@@ -251,7 +251,7 @@ function TestNonArrayWithAccessors() {
x[0] = 42;
x.__defineGetter__("1", function(){return this.foo;});
x.__defineSetter__("1", function(val){this.foo = val;});
- x[1] = 49
+ x[1] = 49;
x[3] = 37;
x.length = 4;
Array.prototype.sort.call(x);
@@ -260,7 +260,7 @@ function TestNonArrayWithAccessors() {
assertEquals(4, x.length, "sortaccessors length");
assertEquals(37, x[0], "sortaccessors first");
assertEquals(42, x[1], "sortaccessors second");
- assertEquals(49, x[2], "sortaccessors third")
+ assertEquals(49, x[2], "sortaccessors third");
assertFalse(3 in x, "sortaccessors fourth");
}
@@ -369,7 +369,7 @@ function TestSpecialCasesInheritedElementSort() {
var sorted = ["a2", "a3", "b1", "b2", "c1", "c2", "d1", "d2", "e3",
undefined, undefined, undefined];
for (var i = 0; i < sorted.length; i++) {
- assertTrue(x.hasOwnProperty(i), name + "has" + i)
+ assertTrue(x.hasOwnProperty(i), name + "has" + i);
assertEquals(sorted[i], x[i], name + i);
}
assertFalse(x.hasOwnProperty(sorted.length), name + "haspost");
« no previous file with comments | « test/mjsunit/array-slice.js ('k') | test/mjsunit/array-splice.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698