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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 10695137: Provide better error message when passing wrong number of arguments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
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 9601)
+++ runtime/vm/dart_api_impl_test.cc (working copy)
@@ -3361,7 +3361,7 @@
EXPECT_ERROR(
result,
"Dart_New: wrong argument count for constructor 'MyClass.named': "
- "expected 1 but saw 0.");
+ "0 passed, 1 expected.");
// Pass a bad argument. Error is passed through.
result = Dart_New(cls, Dart_NewString("named"), 1, bad_args);
@@ -3589,7 +3589,8 @@
// Top-level method, wrong arg count.
EXPECT_ERROR(Dart_Invoke(lib, name, 2, bad_args),
- "did not find top-level function 'topMethod'");
+ "Dart_Invoke: wrong argument count for function 'topMethod': "
+ "2 passed, 1 expected.");
// Hidden top-level method.
name = Dart_NewString("_topMethod");
« no previous file with comments | « runtime/vm/dart_api_impl.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698