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

Unified Diff: pkg/front_end/test/src/base/processed_options_test.dart

Issue 2979623002: Use messages for (some) public API errors (Closed)
Patch Set: cl comments Created 3 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
Index: pkg/front_end/test/src/base/processed_options_test.dart
diff --git a/pkg/front_end/test/src/base/processed_options_test.dart b/pkg/front_end/test/src/base/processed_options_test.dart
index ca17096c2712207fea948b260d0887dda3e2d6dd..349cd08e5fa072e0b6de3b9e80a5bf090ada6e09 100644
--- a/pkg/front_end/test/src/base/processed_options_test.dart
+++ b/pkg/front_end/test/src/base/processed_options_test.dart
@@ -162,7 +162,7 @@ class ProcessedOptionsTest {
..onError = (e) => errors.add(e);
var options = new ProcessedOptions(raw);
expect(await options.validateOptions(), isFalse);
- expect('${errors.first}', contains("SDK root directory not found"));
+ expect(errors.first.message, contains("SDK root directory not found"));
ahe 2017/07/13 00:03:38 For the same trick to work here, you'd have to rem
Siggi Cherem (dart-lang) 2017/07/18 00:32:57 Done. Already landed this fix in a separate CL.
}
test_validateOptions_summary_exists() async {
@@ -189,7 +189,7 @@ class ProcessedOptionsTest {
..onError = (e) => errors.add(e);
var options = new ProcessedOptions(raw);
expect(await options.validateOptions(), isFalse);
- expect('${errors.first}', contains("SDK summary not found"));
+ expect(errors.first.message, contains("SDK summary not found"));
}
test_validateOptions_inferred_summary_exists() async {
@@ -220,6 +220,6 @@ class ProcessedOptionsTest {
..onError = (e) => errors.add(e);
var options = new ProcessedOptions(raw);
expect(await options.validateOptions(), isFalse);
- expect('${errors.first}', contains("SDK summary not found"));
+ expect(errors.first.message, contains("SDK summary not found"));
}
}

Powered by Google App Engine
This is Rietveld 408576698