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); |
} |
} |