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

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

Issue 2789223002: [api] Fix harmony formatting for CompileFunctionInContext
Patch Set: Created 3 years, 9 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-compiler.cc
diff --git a/test/cctest/test-compiler.cc b/test/cctest/test-compiler.cc
index 8a633027ddab6dd44f24c91b5a4cfe7cb3a326e2..2dc5d6b4cb307abfec6a666117c3094adf75b98d 100644
--- a/test/cctest/test-compiler.cc
+++ b/test/cctest/test-compiler.cc
@@ -605,7 +605,8 @@ TEST(CompileFunctionInContextHarmonyFunctionToString) {
fun->ToString(env.local()).ToLocalChecked();
v8::Local<v8::String> expected = v8_str(
"function anonymous(event\n"
- ") {return event\n"
+ ") {\n"
+ "return event\n"
"}");
CHECK(expected->Equals(env.local(), result).FromJust());
}
@@ -630,7 +631,8 @@ TEST(CompileFunctionInContextHarmonyFunctionToString) {
fun->ToString(env.local()).ToLocalChecked();
v8::Local<v8::String> expected = v8_str(
"function anonymous(\n"
- ") {return 0\n"
+ ") {\n"
+ "return 0\n"
"}");
CHECK(expected->Equals(env.local(), result).FromJust());
}
« 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