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

Side by Side Diff: tests/isolate/scenarios/automatic_resolution_root/package_resolve_test.dart

Issue 1586653003: - Allow specifying of package: URIs for packageConfig and packageRoot when (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:io'; 5 import 'dart:io';
6 import 'dart:isolate'; 6 import 'dart:isolate';
7 7
8 final PACKAGE_URI = "package:foo/bar.dart"; 8 final PACKAGE_URI = "package:foo/bar.dart";
9 9
10 main([args, port]) async { 10 main([args, port]) async {
11 if (port != null) { 11 if (port != null) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 var resolvedPkg = await Isolate.resolvePackageUri(Uri.parse(PACKAGE_URI)); 46 var resolvedPkg = await Isolate.resolvePackageUri(Uri.parse(PACKAGE_URI));
47 print("Spawned isolate's package root flag: $packageRootStr"); 47 print("Spawned isolate's package root flag: $packageRootStr");
48 print("Spawned isolate's package config flag: $packageConfigStr"); 48 print("Spawned isolate's package config flag: $packageConfigStr");
49 print("Spawned isolate's loaded package root: $packageRoot"); 49 print("Spawned isolate's loaded package root: $packageRoot");
50 print("Spawned isolate's resolved package path: $resolvedPkg"); 50 print("Spawned isolate's resolved package path: $resolvedPkg");
51 port.send([packageRoot?.toString(), resolvedPkg?.toString()]); 51 port.send([packageRoot?.toString(), resolvedPkg?.toString()]);
52 } catch (e, s) { 52 } catch (e, s) {
53 port.send("$e\n$s\n"); 53 port.send("$e\n$s\n");
54 } 54 }
55 } 55 }
OLDNEW
« no previous file with comments | « tests/isolate/isolate.status ('k') | tests/isolate/scenarios/automatic_resolution_spec/package_resolve_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698