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

Unified Diff: tests/compiler/dart2js/source_map_consistency_helper.dart

Issue 225773002: Add test for checking sources in source map file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/source_map_consistency_helper.dart
diff --git a/tests/compiler/dart2js/source_map_consistency_helper.dart b/tests/compiler/dart2js/source_map_consistency_helper.dart
index 3f69eb69bdfd744d8fcbeca57888276471e3d3e8..37a75a985cbf25b33dc652a70cd5b9c3d390a351 100644
--- a/tests/compiler/dart2js/source_map_consistency_helper.dart
+++ b/tests/compiler/dart2js/source_map_consistency_helper.dart
@@ -22,6 +22,10 @@ checkConsistency(Uri outUri) {
SingleMapping sourceMap = new SingleMapping.fromJson(
JSON.decode(mapFile.readAsStringSync()));
Expect.equals(outUri, mapUri.resolve(sourceMap.targetUrl));
+ print('Checking sources');
+ sourceMap.urls.forEach((String url) {
+ Expect.isTrue(new File.fromUri(mapUri.resolve(url)).existsSync());
+ });
}
String getMapReferenceFromJsOutput(String file) {
« 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