| Index: tests/isolate/package_root_test.dart
|
| diff --git a/tests/isolate/package_root_test.dart b/tests/isolate/package_root_test.dart
|
| index 2ee6b30aa36ae2afb7c33a1ea47423c439bb8bc1..5c5bd344b35c51289804512e52a8067f5bf27ec6 100644
|
| --- a/tests/isolate/package_root_test.dart
|
| +++ b/tests/isolate/package_root_test.dart
|
| @@ -5,16 +5,16 @@
|
| import 'dart:io';
|
| import 'dart:isolate';
|
|
|
| -final SPAWN_PACKAGE_ROOT = Uri.parse("otherPackageRoot");
|
| +final SPAWN_PACKAGE_ROOT = Uri.parse("file:///otherPackageRoot/");
|
|
|
| -void main([args, port]) {
|
| +main([args, port]) async {
|
| if (port != null) {
|
| testPackageRoot(args);
|
| return;
|
| }
|
| var p = new ReceivePort();
|
| Isolate.spawnUri(Platform.script,
|
| - [p.sendPort, Platform.packageRoot],
|
| + [p.sendPort, (await Platform.packageRoot).toString()],
|
| {},
|
| packageRoot: SPAWN_PACKAGE_ROOT);
|
| p.listen((msg) {
|
| @@ -23,14 +23,14 @@ void main([args, port]) {
|
| }
|
|
|
|
|
| -void testPackageRoot(args) {
|
| +testPackageRoot(args) async {
|
| var parentPackageRoot = args[1];
|
| - if (parentPackageRoot == Platform.packageRoot) {
|
| + var packageRoot = await Platform.packageRoot;
|
| + if (parentPackageRoot == packageRoot.toString()) {
|
| throw "Got parent package root";
|
| }
|
| - if (Uri.parse(Platform.packageRoot) != SPAWN_PACKAGE_ROOT) {
|
| - throw "Wrong package root";
|
| + if (packageRoot != SPAWN_PACKAGE_ROOT) {
|
| + throw "Wrong package root: $packageRoot";
|
| }
|
| args[0].send(null);
|
| }
|
| -
|
|
|