Index: test/mjsunit/for-in.js |
diff --git a/test/mjsunit/for-in.js b/test/mjsunit/for-in.js |
index dfe721dbee1ce5305ea3326b8eaa5ce20ce2892e..e3436ff3be1ca2ef8c5683d6ef0c020939bb4110 100644 |
--- a/test/mjsunit/for-in.js |
+++ b/test/mjsunit/for-in.js |
@@ -31,21 +31,21 @@ function props(x) { |
return array.sort(); |
} |
-assertEquals(0, props({}).length); |
-assertEquals(1, props({x:1}).length); |
-assertEquals(2, props({x:1, y:2}).length); |
+assertEquals(0, props({}).length, "olen0"); |
+assertEquals(1, props({x:1}).length, "olen1"); |
+assertEquals(2, props({x:1, y:2}).length, "olen2"); |
-assertArrayEquals(["x"], props({x:1})); |
-assertArrayEquals(["x", "y"], props({x:1, y:2})); |
-assertArrayEquals(["x", "y", "zoom"], props({x:1, y:2, zoom:3})); |
+assertArrayEquals(["x"], props({x:1}), "x"); |
+assertArrayEquals(["x", "y"], props({x:1, y:2}), "xy"); |
+assertArrayEquals(["x", "y", "zoom"], props({x:1, y:2, zoom:3}), "xyzoom"); |
-assertEquals(0, props([]).length); |
-assertEquals(1, props([1]).length); |
-assertEquals(2, props([1,2]).length); |
+assertEquals(0, props([]).length, "alen0"); |
+assertEquals(1, props([1]).length, "alen1"); |
+assertEquals(2, props([1,2]).length, "alen2"); |
-assertArrayEquals(["0"], props([1])); |
-assertArrayEquals(["0", "1"], props([1,2])); |
-assertArrayEquals(["0", "1", "2"], props([1,2,3])); |
+assertArrayEquals(["0"], props([1]), "0"); |
+assertArrayEquals(["0", "1"], props([1,2]), "01"); |
+assertArrayEquals(["0", "1", "2"], props([1,2,3]), "012"); |
var o = {}; |
var a = []; |
@@ -54,33 +54,33 @@ for (var i = 0x0020; i < 0x01ff; i+=2) { |
a.push(s); |
o[s] = i; |
} |
-assertArrayEquals(a, props(o)); |
+assertArrayEquals(a, props(o), "charcodes"); |
var a = []; |
-assertEquals(0, props(a).length); |
+assertEquals(0, props(a).length, "proplen0"); |
a[Math.pow(2,30)-1] = 0; |
-assertEquals(1, props(a).length); |
+assertEquals(1, props(a).length, "proplen1"); |
a[Math.pow(2,31)-1] = 0; |
-assertEquals(2, props(a).length); |
+assertEquals(2, props(a).length, "proplen2"); |
a[1] = 0; |
-assertEquals(3, props(a).length); |
+assertEquals(3, props(a).length, "proplen3"); |
for (var hest = 'hest' in {}) { } |
-assertEquals('hest', hest); |
+assertEquals('hest', hest, "empty-no-override"); |
var result = ''; |
for (var p in {a : [0], b : 1}) { result += p; } |
-assertEquals('ab', result); |
+assertEquals('ab', result, "ab"); |
var result = ''; |
for (var p in {a : {v:1}, b : 1}) { result += p; } |
-assertEquals('ab', result); |
+assertEquals('ab', result, "ab-nodeep"); |
var result = ''; |
for (var p in { get a() {}, b : 1}) { result += p; } |
-assertEquals('ab', result); |
+assertEquals('ab', result, "abget"); |
var result = ''; |
for (var p in { get a() {}, set a(x) {}, b : 1}) { result += p; } |
-assertEquals('ab', result); |
+assertEquals('ab', result, "abgetset"); |