Index: tests/compiler/dart2js/source_map_validator_helper.dart |
diff --git a/tests/compiler/dart2js/source_map_validator_helper.dart b/tests/compiler/dart2js/source_map_validator_helper.dart |
index 4083e109da641587ce08f1dd7bd92e553e2228f3..fdd5ac90f931e8d50ceda4da5a55f28b59991f32 100644 |
--- a/tests/compiler/dart2js/source_map_validator_helper.dart |
+++ b/tests/compiler/dart2js/source_map_validator_helper.dart |
@@ -15,7 +15,7 @@ import 'package:compiler/src/elements/elements.dart' |
CompilationUnitElement, |
ClassElement, |
AstElement; |
-import 'package:compiler/src/source_file.dart' show SourceFile; |
+import 'package:compiler/src/io/source_file.dart' show SourceFile; |
validateSourceMap(Uri targetUri, [Compiler compiler]) { |
Uri mapUri = getMapUri(targetUri); |
@@ -174,7 +174,7 @@ sameSourcePoint(TargetEntry entry, TargetEntry otherEntry) { |
Uri getMapUri(Uri targetUri) { |
print('Accessing $targetUri'); |
File targetFile = new File.fromUri(targetUri); |
- Expect.isTrue(targetFile.existsSync()); |
+ Expect.isTrue(targetFile.existsSync(), "File '$targetUri' doesn't exist."); |
List<String> target = targetFile.readAsStringSync().split('\n'); |
String mapReference = target[target.length - 2]; // #sourceMappingURL=<url> |
Expect.isTrue(mapReference.startsWith('//# sourceMappingURL=')); |