mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:24:24 +00:00
Fix path on Windows test
R=kustermann@google.com, mit@google.com, rmacnak@google.com Bug: https://github.com/dart-lang/sdk/issues/54903 Change-Id: I132ef3385cdde03ab73df194414a38f9fd9927a9 Cq-Include-Trybots: luci.dart.try:pkg-win-release-try,pkg-win-release-arm64-try,pkg-mac-release-try,pkg-mac-release-arm64-try,pkg-linux-release-try,pkg-linux-release-arm64-try,pkg-linux-debug-try Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352240 Reviewed-by: Ben Konyi <bkonyi@google.com> Auto-Submit: Kzrnm <gengesa@gmail.com> Commit-Queue: Siva Annamalai <asiva@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>
This commit is contained in:
parent
a92ac0237a
commit
47c93a9396
1 changed files with 4 additions and 2 deletions
|
@ -617,13 +617,14 @@ void f() {
|
|||
expect(result.exitCode, 3);
|
||||
expect(result.stderr, isEmpty);
|
||||
|
||||
final escapedSeparator = path.separator.replaceAll('\\', '\\\\');
|
||||
final stdout = result.stdout.trim();
|
||||
expect(
|
||||
stdout,
|
||||
startsWith(
|
||||
'{"version":1,"diagnostics":[{"code":"return_of_invalid_type",'));
|
||||
expect(stdout, endsWith('}'));
|
||||
expect(stdout, contains('lib${path.separator}main.dart'));
|
||||
expect(stdout, contains('lib${escapedSeparator}main.dart'));
|
||||
expect(stdout, contains('"line":1,"column":16'));
|
||||
expect(stdout, contains('"problemMessage":"A value of type '));
|
||||
});
|
||||
|
@ -704,9 +705,10 @@ void f() {
|
|||
expect(result.exitCode, 3);
|
||||
expect(result.stderr, isEmpty);
|
||||
|
||||
final escapedSeparator = path.separator.replaceAll('\\', '\\\\');
|
||||
final stdout = result.stdout.trim();
|
||||
expect(stdout, contains('|A value of type '));
|
||||
expect(stdout, contains('lib${path.separator}main.dart|1|16|'));
|
||||
expect(stdout, contains('lib${escapedSeparator}main.dart|1|16|'));
|
||||
});
|
||||
});
|
||||
test('short', () {
|
||||
|
|
Loading…
Reference in a new issue