| Index: pkg/front_end/test/fasta/uri_translator_test.dart
|
| diff --git a/pkg/front_end/test/fasta/uri_translator_test.dart b/pkg/front_end/test/fasta/uri_translator_test.dart
|
| index e15cde8cd2a9f33fbd48c5df69e1c7cbbcc3c383..27ca3c868e130790bc82921e854e6fc8b2d1680c 100644
|
| --- a/pkg/front_end/test/fasta/uri_translator_test.dart
|
| +++ b/pkg/front_end/test/fasta/uri_translator_test.dart
|
| @@ -2,7 +2,6 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -import 'package:front_end/src/base/libraries_specification.dart';
|
| import 'package:front_end/src/fasta/uri_translator_impl.dart';
|
| import 'package:package_config/packages.dart';
|
| import 'package:test/test.dart';
|
| @@ -16,16 +15,12 @@ main() {
|
|
|
| @reflectiveTest
|
| class UriTranslatorImplTest {
|
| - UriTranslatorImpl translator = new UriTranslatorImpl(
|
| - new TargetLibrariesSpecification('vm', {
|
| - 'core': new LibraryInfo(
|
| - 'core', Uri.parse('file:///sdk/core/core.dart'), const []),
|
| - 'math': new LibraryInfo(
|
| - 'core', Uri.parse('file:///sdk/math/math.dart'), const []),
|
| - }),
|
| - Packages.noPackages);
|
| -
|
| void test_isPlatformImplementation() {
|
| + var translator = new UriTranslatorImpl({
|
| + 'core': Uri.parse('file:///sdk/core/core.dart'),
|
| + 'math': Uri.parse('file:///sdk/math/math.dart')
|
| + }, {}, Packages.noPackages);
|
| +
|
| bool isPlatform(String uriStr) {
|
| var uri = Uri.parse(uriStr);
|
| return translator.isPlatformImplementation(uri);
|
| @@ -38,6 +33,11 @@ class UriTranslatorImplTest {
|
| }
|
|
|
| void test_translate_dart() {
|
| + var translator = new UriTranslatorImpl({
|
| + 'core': Uri.parse('file:///sdk/core/core.dart'),
|
| + 'math': Uri.parse('file:///sdk/math/math.dart')
|
| + }, {}, Packages.noPackages);
|
| +
|
| expect(translator.translate(Uri.parse('dart:core')),
|
| Uri.parse('file:///sdk/core/core.dart'));
|
| expect(translator.translate(Uri.parse('dart:core/string.dart')),
|
|
|