Index: pkg/front_end/test/fasta/translate_uri_test.dart |
diff --git a/pkg/front_end/test/fasta/translate_uri_test.dart b/pkg/front_end/test/fasta/translate_uri_test.dart |
index a4b0f6143b6625a680e0e24499bd215fd145dc20..ebdd69cb7c473ec166e40d5fdbe015b229296272 100644 |
--- a/pkg/front_end/test/fasta/translate_uri_test.dart |
+++ b/pkg/front_end/test/fasta/translate_uri_test.dart |
@@ -18,7 +18,7 @@ class TranslateUriTest { |
var translator = new TranslateUri({}, { |
'core': Uri.parse('file:///sdk/core/core.dart'), |
'math': Uri.parse('file:///sdk/math/math.dart') |
- }); |
+ }, {}); |
expect(translator.translate(Uri.parse('dart:core')), |
Uri.parse('file:///sdk/core/core.dart')); |
@@ -29,5 +29,17 @@ class TranslateUriTest { |
Uri.parse('file:///sdk/math/math.dart')); |
expect(translator.translate(Uri.parse('dart:unknown')), isNull); |
+ |
+ expect( |
+ translator.isPlatformImplementation(Uri.parse('dart:core/string.dart')), |
+ isTrue); |
+ expect( |
+ translator.isPlatformImplementation(Uri.parse('dart:core')), isFalse); |
+ expect(translator.isPlatformImplementation(Uri.parse('dart:_builtin')), |
+ isTrue); |
+ expect( |
+ translator |
+ .isPlatformImplementation(Uri.parse('file:///sdk/math/math.dart')), |
+ isFalse); |
} |
} |