Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 8a25432a68a88c1197baadefa430f8a585b8b30c..c75bd0002605d33e17e4e289652553f561a70a95 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -6259,10 +6259,6 @@ static void Utf16Helper( |
Local<v8::String>::Cast(a->Get(i)); |
Local<v8::Number> expected_len = |
Local<v8::Number>::Cast(alens->Get(i)); |
-#ifndef ENABLE_LATIN_1 |
- CHECK_EQ(expected_len->Value() != string->Length(), |
- string->MayContainNonAscii()); |
-#endif |
int length = GetUtf8Length(string); |
CHECK_EQ(static_cast<int>(expected_len->Value()), length); |
} |
@@ -12931,10 +12927,8 @@ THREADED_TEST(MorphCompositeStringTest) { |
"var slice = lhs.substring(1, lhs.length - 1);" |
"var slice_on_cons = (lhs + rhs).substring(1, lhs.length *2 - 1);"); |
-#ifndef ENABLE_LATIN_1 |
- CHECK(!lhs->MayContainNonAscii()); |
- CHECK(!rhs->MayContainNonAscii()); |
-#endif |
+ CHECK(lhs->IsOneByte()); |
+ CHECK(rhs->IsOneByte()); |
MorphAString(*v8::Utils::OpenHandle(*lhs), &ascii_resource, &uc16_resource); |
MorphAString(*v8::Utils::OpenHandle(*rhs), &ascii_resource, &uc16_resource); |