OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import 'dart:isolate'; |
| 6 import 'package:unittest/unittest.dart'; |
| 7 import 'package:unittest/html_config.dart'; |
| 8 |
| 9 main() async { |
| 10 useHtmlConfiguration(); |
| 11 |
| 12 test('defaultPackagesBase hook overrides package-uri resolution', () async { |
| 13 var uri = await Isolate.resolvePackageUri(Uri.parse('package:foo/bar.txt')); |
| 14 expect(uri, Uri.base.resolve('path/set/from/hook/foo/bar.txt')); |
| 15 }); |
| 16 } |
OLD | NEW |