anchor.diff:  
     FutureOr<shelf.Response> _packageFilesHandler(shelf.Request request) async {
       if (request.requestedUri.pathSegments.first == 'packages') {
  -      // TODO(bkonyi): remove deprecated member usage, https://github.com/flutter/flutter/issues/51951
  -      // ignore: deprecated_member_use
  -      final Packages packages = await _packagesFuture;
  -      final Uri fileUri = packages.resolve(Uri(
  +      final PackageConfig packageConfig = await _packagesFuture;
  +      final Uri fileUri = packageConfig.resolve(Uri(
           scheme: 'package',
           pathSegments: request.requestedUri.pathSegments.skip(1),
         ));
  
positive.code:       ));
  
    /// The precompiled test javascript.
    File get testDartJs => globals.fs.file(globals.fs.path.join(
          testUri.toFilePath(),
          'dart.js',
        ));
  
    File get testHostDartJs => globals.fs.file(globals.fs.path.join(
          testUri.toFilePath(),
          'src',
          'runner',
          'browser',
          'static',
          'host.dart.js',
        ));
  
    Future<shelf.Response> _handleStaticArtifact(shelf.Request request) async {
      if (request.requestedUri.path.contains('require.js')) {
  
negative.code:     );
    }
  
    final Future<PackageConfig> _packagesFuture = loadPackageConfigUri(
      Uri.base.resolve('.packages'),
      loader: (Uri uri) {
        final File file = globals.fs.file(uri);
        if (!file.existsSync()) {
          return null;
        }
        return file.readAsBytes();
      }
    );
  
    final Future<PackageConfig> _flutterToolsPackageMap = loadPackageConfigUri(
      globals.fs.file(globals.fs.path.join(
        Cache.flutterRoot,
        'packages',
        'flutter_tools',
        '.packages',
      )).absolute.uri,
        loader: (Uri uri) {
          final File file = globals.fs.file(uri);
          if (!file.existsSync()) {
            return null;
          }
          return file.readAsBytes();
        }
      );
  
    /// Uri of the test package.
    Future<Uri> get testUri async => (await _flutterToolsPackageMap)['test']?.packageUriRoot;
  
    /// The test runner configuration.
    final Configuration _config;
  