Index: test/mjsunit/regress/regress-latin-1.js |
diff --git a/test/mjsunit/regress/regress-crbug-146910.js b/test/mjsunit/regress/regress-latin-1.js |
similarity index 81% |
copy from test/mjsunit/regress/regress-crbug-146910.js |
copy to test/mjsunit/regress/regress-latin-1.js |
index 120f80973192fa9b5ee1db6797da6c13e4358c31..1b2a60af7fd3fe2e23ef5a8589e6b81d425d2fd5 100644 |
--- a/test/mjsunit/regress/regress-crbug-146910.js |
+++ b/test/mjsunit/regress/regress-latin-1.js |
@@ -1,4 +1,4 @@ |
-// Copyright 2012 the V8 project authors. All rights reserved. |
+// Copyright 2013 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -25,14 +25,9 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-var x = []; |
-assertSame(0, x.length); |
-assertSame(undefined, x[0]); |
+assertEquals(String.fromCharCode(97, 220, 256), 'a' + '\u00DC' + '\u0100'); |
+assertEquals(String.fromCharCode(97, 220, 256), 'a\u00DC\u0100'); |
-Object.defineProperty(x, '0', { value: 7, configurable: false }); |
-assertSame(1, x.length); |
-assertSame(7, x[0]); |
+assertEquals(['a', 'b', '\xdc'], ['b', '\xdc', 'a'].sort()); |
+assertEquals(['\xfc\xdc', '\xfc'], new RegExp('(\xdc)\\1', 'i').exec('\xfc\xdc')); |
-x.length = 0; |
-assertSame(1, x.length); |
-assertSame(7, x[0]); |