Index: test/cctest/test-api.cc |
=================================================================== |
--- test/cctest/test-api.cc (revision 10035) |
+++ test/cctest/test-api.cc (working copy) |
@@ -491,7 +491,7 @@ |
HEAP->CollectGarbage(i::NEW_SPACE); |
HEAP->CollectGarbage(i::NEW_SPACE); |
- uint16_t* two_byte_string = AsciiToTwoByteString("small"); |
+ uint16_t* two_byte_string = AsciiToTwoByteString("abcdefghi"); |
Local<String> small_string = String::New(two_byte_string); |
i::DeleteArray(two_byte_string); |
@@ -503,7 +503,7 @@ |
// Old space strings should be accepted. |
CHECK(small_string->CanMakeExternal()); |
- two_byte_string = AsciiToTwoByteString("small 2"); |
+ two_byte_string = AsciiToTwoByteString("abcdefghi"); |
small_string = String::New(two_byte_string); |
i::DeleteArray(two_byte_string); |
@@ -537,7 +537,7 @@ |
HEAP->CollectGarbage(i::NEW_SPACE); |
HEAP->CollectGarbage(i::NEW_SPACE); |
- Local<String> small_string = String::New("small"); |
+ Local<String> small_string = String::New("abcdefghi"); |
// We should refuse to externalize newly created small string. |
CHECK(!small_string->CanMakeExternal()); |
// Trigger GCs so that the newly allocated string moves to old gen. |
@@ -546,7 +546,7 @@ |
// Old space strings should be accepted. |
CHECK(small_string->CanMakeExternal()); |
- small_string = String::New("small 2"); |
+ small_string = String::New("abcdefghi"); |
// We should refuse externalizing newly created small string. |
CHECK(!small_string->CanMakeExternal()); |
for (int i = 0; i < 100; i++) { |