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

Unified Diff: test/report_test.dart

Issue 965033003: Fix report test (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/report_test.dart
diff --git a/test/report_test.dart b/test/report_test.dart
index 8cc3a35ac199bbdc65991eff2f31470e66d5aa71..1ed8a7af81c6af6dbdbcb39313fd1157823e478f 100644
--- a/test/report_test.dart
+++ b/test/report_test.dart
@@ -34,11 +34,12 @@ main() {
testChecker(files, reporter: reporter);
var summary1 = reporter.result;
- expect(summary1.loose['main'].messages.length, 1);
- expect(summary1.packages['foo'].libraries['bar'].messages.length, 1);
+ expect(summary1.loose['file:///main.dart'].messages.length, 1);
+ var barUrl = 'package:foo/bar.dart';
+ expect(summary1.packages['foo'].libraries[barUrl].messages.length, 1);
var summary2 = GlobalSummary.parse(summary1.toJsonMap());
- expect(summary2.loose['main'].messages.length, 1);
- expect(summary2.packages['foo'].libraries['bar'].messages.length, 1);
+ expect(summary2.loose['file:///main.dart'].messages.length, 1);
+ expect(summary2.packages['foo'].libraries[barUrl].messages.length, 1);
});
}
« 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