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

Unified Diff: tests/language/vm/no_such_method_error_message_vm_test.dart

Issue 2405353002: Improvements to NoSuchMethodError.toString (Closed)
Patch Set: Fix for Ryan's comments. Created 4 years, 2 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/isolate_reload_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/vm/no_such_method_error_message_vm_test.dart
diff --git a/tests/language/vm/no_such_method_error_message_vm_test.dart b/tests/language/vm/no_such_method_error_message_vm_test.dart
index 6be273811482c7ad0cfe001c06d9268209c36673..259a13a045fabe4a445570df023933c5aeb841bb 100644
--- a/tests/language/vm/no_such_method_error_message_vm_test.dart
+++ b/tests/language/vm/no_such_method_error_message_vm_test.dart
@@ -6,7 +6,7 @@
import "package:expect/expect.dart";
// Test error message with noSuchMethodError: non-existent names
-// should result in a "method not found" message.
+// should result in a message that reports the missing method.
call_bar(x) => x.bar();
@@ -14,7 +14,7 @@ testMessage() {
try {
call_bar(5);
} catch (e) {
- Expect.isTrue(e.toString().indexOf("method not found") != -1);
+ Expect.isTrue(e.toString().indexOf("has no instance method 'bar'") != -1);
}
}
« no previous file with comments | « runtime/vm/isolate_reload_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698