[analyzer] Fix file paths in const tests.

Change-Id: I4b3ae8a5aad0b019640c46205364857942db2d92
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/318400
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Kallen Tu <kallentu@google.com>
This commit is contained in:
Kallen Tu 2023-08-04 19:48:47 +00:00 committed by Commit Queue
parent 99745598cd
commit 7e04cd002b
2 changed files with 6 additions and 6 deletions

View file

@ -3465,10 +3465,10 @@ main() {
124,
10,
contextMessages: [
ExpectedContextMessage('/home/test/lib/test.dart', 84, 1,
ExpectedContextMessage(testFile.path, 84, 1,
text:
"The evaluated constructor 'A' is called by 'B' and 'B' is defined here."),
ExpectedContextMessage('/home/test/lib/test.dart', 31, 14,
ExpectedContextMessage(testFile.path, 31, 14,
text:
"The exception is 'The assertion in this constant expression failed.' and occurs here."),
],
@ -3513,10 +3513,10 @@ const b = const B();
101,
9,
contextMessages: [
ExpectedContextMessage('/home/test/lib/test.dart', 74, 1,
ExpectedContextMessage(testFile.path, 74, 1,
text:
"The evaluated constructor 'A' is called by 'B' and 'B' is defined here."),
ExpectedContextMessage('/home/test/lib/test.dart', 23, 19,
ExpectedContextMessage(testFile.path, 23, 19,
text:
"The exception is 'The assertion in this constant expression failed.' and occurs here."),
],

View file

@ -126,10 +126,10 @@ main() {
124,
10,
contextMessages: [
ExpectedContextMessage('/home/test/lib/test.dart', 84, 1,
ExpectedContextMessage(testFile.path, 84, 1,
text:
"The evaluated constructor 'A' is called by 'B' and 'B' is defined here."),
ExpectedContextMessage('/home/test/lib/test.dart', 31, 14,
ExpectedContextMessage(testFile.path, 31, 14,
text:
"The exception is 'The assertion in this constant expression failed.' and occurs here."),
],