Fix current_isolate_info_test.

This test didn't actually work when run with a package root rather than
a package config, as is the case in Google-internal tests.

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//2224203002 .
3 files changed
tree: a6c6a0933717a5825239cf8bd026fac192ec477b
  1. lib/
  2. test/
  3. .analysis_options
  4. .gitignore
  5. .test_config
  6. AUTHORS
  7. CHANGELOG.md
  8. codereview.settings
  9. CONTRIBUTING.md
  10. LICENSE
  11. pubspec.yaml
  12. README.md
README.md

A package that defines a common class, PackageResolver, for defining how to resolve package: URIs. This class may be based on the current isolate's package resolution strategy, but it may also be explicitly defined by the user—for example, you could create a resolver that represents the strategy used to compile a .dart.js file.

The Dart VM provides two mutually exclusive means of resolving package: URIs: a package spec and a package root.

  • A package spec usually comes in the form of a .packages file on the filesystem. It defines an individual root URL for each package name, so that package:$name/$path resolves to $root/$path.

  • A package root is a single URL that acts as the base for all package: URIs, so that package:$name/$path resolves to $base/$name/$path.

This normalizes access to these resolution schemes, and makes it easy for code to resolve package URIs no matter where the resolution information comes from.