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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 10829332: - Split functionality of adding implicit constructors and checking (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « no previous file | runtime/vm/object.h » ('j') | runtime/vm/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl_test.cc
===================================================================
--- runtime/vm/dart_api_impl_test.cc (revision 10698)
+++ runtime/vm/dart_api_impl_test.cc (working copy)
@@ -5480,6 +5480,7 @@
"#library('patched_library');\n"
"class A {\n"
" var _f;\n"
+ " callFunc(x, y) => x(y);\n"
" external method(var value);\n"
" get field() => _field;\n"
"}\n"
@@ -5493,6 +5494,8 @@
" var _g;\n"
" get _field() => _g;\n"
" patch method(var value) {\n"
+ " int closeYourEyes(var eggs) { return eggs * -1; }\n"
+ " value = callFunc(closeYourEyes, value);\n"
" _g = value * 5;\n"
" }\n"
"}\n"
@@ -5573,7 +5576,7 @@
EXPECT_VALID(result);
EXPECT(Dart_IsInteger(result));
EXPECT_VALID(Dart_IntegerToInt64(result, &value));
- EXPECT_EQ(25, value);
+ EXPECT_EQ(-25, value);
}
« no previous file with comments | « no previous file | runtime/vm/object.h » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698