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

Unified Diff: pkg/front_end/test/fasta/translate_uri_test.dart

Issue 2895983002: Read SDK and patches from a JSON file. (Closed)
Patch Set: Merged with 1333f97b9a0e3805f991578ef83b0ec4553ecf33 Created 3 years, 7 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
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);
}
}
« no previous file with comments | « pkg/front_end/test/fasta/testing/suite.dart ('k') | pkg/front_end/test/src/incremental/file_state_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698