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

Unified Diff: test/cctest/test-strings.cc

Issue 1609021: Expose a hint which communicates that string might be written many times. (Closed)
Patch Set: Created 10 years, 8 months 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 | « src/api.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-strings.cc
diff --git a/test/cctest/test-strings.cc b/test/cctest/test-strings.cc
index aadb7d01beab0b9eaf50d091e9b31bb13029cd42..0e30092dbbad90476188044a4821aa3945a8b684 100644
--- a/test/cctest/test-strings.cc
+++ b/test/cctest/test-strings.cc
@@ -347,38 +347,6 @@ TEST(Utf8Conversion) {
}
-TEST(StringConcatFlatten) {
- InitializeVM();
- v8::HandleScope handle_scope;
-
- const char* stringA = "0123456789";
- const char* stringB = "ABCDEFGHIJ";
-
- v8::Local<v8::String> a = v8::String::New(stringA);
- v8::Local<v8::String> b = v8::String::New(stringB);
-
- v8::Local<v8::String> cons = v8::String::Concat(a, b);
-
- i::Handle<i::String> str = v8::Utils::OpenHandle(*cons);
- CHECK(!str->IsFlat());
-
- cons->Flatten();
-
- CHECK(str->IsFlat());
-
- char buffer[21];
- cons->WriteUtf8(buffer);
-
- for (int i = 0; i < 10; i++) {
- CHECK_EQ(stringA[i], buffer[i]);
- }
-
- for (int i = 0; i < 10; i++) {
- CHECK_EQ(stringB[i], buffer[i + 10]);
- }
-}
-
-
TEST(ExternalShortStringAdd) {
ZoneScope zone(DELETE_ON_EXIT);
« no previous file with comments | « src/api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698