Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 6f5c841d8149496711db9fe99b1124349dd7a41c..c7c6bb545de2311c92b1f660146ba1e4a37f1b91 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -6293,8 +6293,10 @@ 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); |
} |
@@ -12873,8 +12875,10 @@ 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 |
MorphAString(*v8::Utils::OpenHandle(*lhs), &ascii_resource, &uc16_resource); |
MorphAString(*v8::Utils::OpenHandle(*rhs), &ascii_resource, &uc16_resource); |