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

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

Issue 2785623004: Fix #14144 confusing error message misusing a callable object (Closed)
Patch Set: Realized that doing .runtimeType == _Closure is unnecessary, doing 'is' now. 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 | « tests/language/vm/no_such_method_error_message_callable_vm_test.dart ('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 259a13a045fabe4a445570df023933c5aeb841bb..575a9662e54049630ce52854cacfb2f7f5da602c 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
@@ -14,12 +14,10 @@ testMessage() {
try {
call_bar(5);
} catch (e) {
- Expect.isTrue(e.toString().indexOf("has no instance method 'bar'") != -1);
+ Expect.isTrue(e.toString().contains("has no instance method 'bar'"));
}
}
-
main() {
for (var i = 0; i < 20; i++) testMessage();
}
-
« no previous file with comments | « tests/language/vm/no_such_method_error_message_callable_vm_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698