Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index cc14ffa2d32e003f81d05c9798ae2c08c557e8be..709a1ff85ecb9b6baad09a7bb6a09639732bcf63 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -7451,15 +7451,13 @@ TEST(ExceptionExtensions) { |
CHECK(context.IsEmpty()); |
} |
- |
static const char* kNativeCallInExtensionSource = |
- "function call_runtime_last_index_of(x) {" |
- " return %StringLastIndexOf(x, 'bob', 10);" |
+ "function call_runtime_string_compare(x) {" |
+ " return %StringCompare(x, x);" |
"}"; |
- |
static const char* kNativeCallTest = |
- "call_runtime_last_index_of('bobbobboellebobboellebobbob');"; |
+ "call_runtime_string_compare('bobbobboellebobboellebobbob');"; |
// Test that a native runtime calls are supported in extensions. |
TEST(NativeCallInExtensions) { |
@@ -7471,11 +7469,10 @@ TEST(NativeCallInExtensions) { |
v8::Local<Context> context = Context::New(CcTest::isolate(), &extensions); |
Context::Scope lock(context); |
v8::Local<Value> result = CompileRun(kNativeCallTest); |
- CHECK(result->Equals(context, v8::Integer::New(CcTest::isolate(), 3)) |
+ CHECK(result->Equals(context, v8::Integer::New(CcTest::isolate(), 0)) |
.FromJust()); |
} |
- |
class NativeFunctionExtension : public Extension { |
public: |
NativeFunctionExtension(const char* name, const char* source, |