Chromium Code Reviews| Index: test/mjsunit/unbox-double-arrays.js |
| diff --git a/test/mjsunit/unbox-double-arrays.js b/test/mjsunit/unbox-double-arrays.js |
| index 2d858939dc000608c6f65e98eaa83f305a9c05db..32ac95735770ce409d7b9b5c84e33a112c571a71 100644 |
| --- a/test/mjsunit/unbox-double-arrays.js |
| +++ b/test/mjsunit/unbox-double-arrays.js |
| @@ -29,12 +29,12 @@ |
| // Flags: --allow-natives-syntax --unbox-double-arrays --expose-gc |
| var large_array_size = 100000; |
| -var approx_dict_to_elements_threshold = 75000; |
| +var approx_dict_to_elements_threshold = 70000; |
| var name = 0; |
| function expected_array_value(i) { |
| - if ((i % 2) == 0) { |
| + if ((i % 50) != 0) { |
| return i; |
| } else { |
| return i + 0.5; |
| @@ -467,6 +467,17 @@ test_for_in(); |
| test_for_in(); |
| test_for_in(); |
| +function test_get_property_names() { |
| + names = %GetPropertyNames(large_array3); |
| + property_name_count = 0; |
| + for (x in names) { property_name_count++}; |
|
Mads Ager (chromium)
2011/07/22 08:29:20
++} -> ++; }
|
| + assertEquals(26, property_name_count); |
| +} |
| + |
| +test_get_property_names(); |
| +test_get_property_names(); |
| +test_get_property_names(); |
| + |
| // Test elements getters. |
| assertEquals(expected_array_value(10), large_array3[10]); |
| assertEquals(expected_array_value(-NaN), large_array3[2]); |