Index: test/parser_test.dart |
diff --git a/test/parser_test.dart b/test/parser_test.dart |
index 8528683f3762de90e118b704a9a51adcf0f7a60f..b14fdf4253f059c8d5df447fed2f4d0cfd7fbc6c 100644 |
--- a/test/parser_test.dart |
+++ b/test/parser_test.dart |
@@ -114,6 +114,14 @@ main() { |
expect(mapping.toJson(), equals(inputMap)); |
}); |
+ test('parse with map URL', () { |
+ var inputMap = new Map.from(MAP_WITH_SOURCE_LOCATION); |
+ inputMap['sourceRoot'] = 'pkg/'; |
+ var mapping = parseJson(inputMap, mapUrl: "file:///path/to/map"); |
+ expect(mapping.spanFor(0, 0).sourceUrl, |
+ Uri.parse("file:///path/to/pkg/input.dart")); |
+ }); |
+ |
test('parse and re-emit', () { |
for (var expected in [ |
EXPECTED_MAP, |