992d060da6
Minor changes for strong-mode. Bug: Change-Id: Ia9387a4d7976156bb592515bb848f7be45699478 Reviewed-on: https://dart-review.googlesource.com/11021 Commit-Queue: Ben Konyi <bkonyi@google.com> Reviewed-by: Phil Quitslund <pquitslund@google.com> Reviewed-by: Bob Nystrom <rnystrom@google.com>
17 lines
583 B
Dart
17 lines
583 B
Dart
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
|
// 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 'dart:isolate';
|
|
import 'package:unittest/unittest.dart';
|
|
import 'package:unittest/html_config.dart';
|
|
|
|
main() {
|
|
useHtmlConfiguration();
|
|
|
|
test('by default package-uri resolve under base/packages/', () async {
|
|
var uri = await Isolate.resolvePackageUri(Uri.parse('package:foo/bar.txt'));
|
|
expect(uri, Uri.base.resolve('packages/foo/bar.txt'));
|
|
});
|
|
}
|