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

Unified Diff: pkg/analyzer/test/parse_compilation_unit_test.dart

Issue 1750773002: Remove invalid URI in an attempt to fix a windows bug. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « pkg/analyzer/lib/analyzer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/parse_compilation_unit_test.dart
diff --git a/pkg/analyzer/test/parse_compilation_unit_test.dart b/pkg/analyzer/test/parse_compilation_unit_test.dart
index c5313da88c8d00b0b2ec0f50215f0a960522d2f6..710380f0def60f4d860bb89d842349bd94b32d39 100644
--- a/pkg/analyzer/test/parse_compilation_unit_test.dart
+++ b/pkg/analyzer/test/parse_compilation_unit_test.dart
@@ -26,14 +26,12 @@ void main() {
})));
});
- test("defaults to '<unknown source>' if no name is provided", () {
+ test("defaults to 'null' if no name is provided", () {
expect(() {
parseCompilationUnit("void main() => print('Hello, world!')");
}, throwsA(predicate((error) {
return error is AnalyzerErrorGroup &&
- error
- .toString()
- .contains("Error in <unknown source>: Expected to find ';'");
+ error.toString().contains("Error in null: Expected to find ';'");
Paul Berry 2016/03/01 17:14:32 It seems like a shame to expose the user to the ph
Brian Wilkerson 2016/03/02 16:31:00 You're right, that is better. Done.
})));
});
« no previous file with comments | « pkg/analyzer/lib/analyzer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698