Skip to content

Commit 3a4aad6

Browse files
johnniwinthercommit-bot@chromium.org
authored andcommitted
[cfe] Use test description uri for expectation file location
Previously the first file in the `Component.uriToSource` was used which didn't work nicely with multifile tests. Text outline expectations were already using the test description uri. Change-Id: I0d4a7493cd1fa61beffba41f1ea859ca5e8ad08c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/151825 Commit-Queue: Johnni Winther <[email protected]> Reviewed-by: Jens Johansen <[email protected]>
1 parent fa650e4 commit 3a4aad6

File tree

48 files changed

+87
-527
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+87
-527
lines changed

pkg/front_end/test/utils/kernel_chain.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,7 @@ class MatchExpectation
257257
component.adoptChildren();
258258
}
259259

260-
Uri uri =
261-
component.uriToSource.keys.firstWhere((uri) => uri?.scheme == "file");
260+
Uri uri = result.description.uri;
262261
Iterable<Library> libraries =
263262
componentToText.libraries.where(result.isUserLibrary);
264263
Uri base = uri.resolve(".");

pkg/front_end/testcases/nnbd_mixed/issue40512/issue40512_lib.dart.outline.expect

-69
This file was deleted.

pkg/front_end/testcases/nnbd_mixed/issue41210a/issue41210_lib1.dart.outline.expect

-86
This file was deleted.

pkg/front_end/testcases/nnbd_mixed/issue42387/foundation_basic_types_lib.dart.weak.expect

-129
This file was deleted.

0 commit comments

Comments
 (0)