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

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

Issue 2339123002: [builtins] Move StringLastIndexOf to a builtin. (Closed)
Patch Set: Variable renaming to make things a bit clearer Created 4 years, 3 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:
Download patch
« no previous file with comments | « src/runtime/runtime-strings.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-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index cc14ffa2d32e003f81d05c9798ae2c08c557e8be..b0e9ce8ca5f3f4fc23cc530a81c13ab89206c21e 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -7451,13 +7451,11 @@ TEST(ExceptionExtensions) {
CHECK(context.IsEmpty());
}
-
static const char* kNativeCallInExtensionSource =
"function call_runtime_last_index_of(x) {"
- " return %StringLastIndexOf(x, 'bob', 10);"
+ " return %StringLastIndexOf(x, 'bob');"
"}";
-
static const char* kNativeCallTest =
"call_runtime_last_index_of('bobbobboellebobboellebobbob');";
@@ -7471,7 +7469,7 @@ 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(), 24))
.FromJust());
}
« no previous file with comments | « src/runtime/runtime-strings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698