@@ -1409,6 +1409,39 @@ void main() {
14091409 ]));
14101410 });
14111411
1412+ test ('lookupPackageUris ignores local parameter' , () async {
1413+ final vm = await service.getVM ();
1414+ final isolateId = vm.isolates.first.id;
1415+ final scriptList = await service.getScripts (isolateId);
1416+
1417+ final uris = scriptList.scripts.map ((e) => e.uri).toList ();
1418+ final resolvedUrisWithLocal =
1419+ await service.lookupResolvedPackageUris (isolateId, uris, local: true );
1420+
1421+ final packageUrisWithLocal = await service.lookupPackageUris (
1422+ isolateId, resolvedUrisWithLocal.uris);
1423+ expect (
1424+ packageUrisWithLocal.uris,
1425+ containsAll ([
1426+ 'org-dartlang-app:///example/hello_world/main.dart' ,
1427+ 'package:path/path.dart' ,
1428+ 'package:path/src/path_set.dart' ,
1429+ ]));
1430+
1431+ final resolvedUrisWithoutLocal =
1432+ await service.lookupResolvedPackageUris (isolateId, uris, local: true );
1433+
1434+ final packageUrisWithoutLocal = await service.lookupPackageUris (
1435+ isolateId, resolvedUrisWithoutLocal.uris);
1436+ expect (
1437+ packageUrisWithoutLocal.uris,
1438+ containsAll ([
1439+ 'org-dartlang-app:///example/hello_world/main.dart' ,
1440+ 'package:path/path.dart' ,
1441+ 'package:path/src/path_set.dart' ,
1442+ ]));
1443+ });
1444+
14121445 test ('lookupPackageUris does not translate non-existent paths' , () async {
14131446 final vm = await service.getVM ();
14141447 final isolateId = vm.isolates.first.id;
0 commit comments