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

Unified Diff: lib/src/frontend/expect.dart

Issue 1182333002: pkg/test: fix error message for expect call outside of test body (Closed) Base URL: https://github.com/dart-lang/test.git@master
Patch Set: Created 5 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/frontend/expect.dart
diff --git a/lib/src/frontend/expect.dart b/lib/src/frontend/expect.dart
index 8d73ea308b71ede696e0a94fe04d548548fcc120..3059b2faa33b4fa9df96ad93de8b5153bac26566 100644
--- a/lib/src/frontend/expect.dart
+++ b/lib/src/frontend/expect.dart
@@ -40,7 +40,7 @@ typedef String ErrorFormatter(
void expect(actual, matcher,
{String reason, bool verbose: false, ErrorFormatter formatter}) {
if (Invoker.current == null) {
- throw new StateError("extend() may only be called within a test.");
+ throw new StateError("expect() may only be called within a test.");
}
if (Invoker.current.closed) throw new ClosedException();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698