mirror of
https://github.com/dart-lang/sdk
synced 2024-09-06 00:59:09 +00:00
Use Context.separator in nnbd i13n output; Fixes #38574
Change-Id: If125bc6d8bc9ae66d949c712921b6ce7da428f6e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118890 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Samuel Rawlins <srawlins@google.com>
This commit is contained in:
parent
38a3a6b6cb
commit
661816ea06
|
@ -225,7 +225,7 @@ analyzer:
|
|||
// likely with actual directories, which need to be individually created.
|
||||
var relativePath = pathContext
|
||||
.relative(libraryPath, from: includedRoot)
|
||||
.replaceAll('/', '__');
|
||||
.replaceAll(pathContext.separator, '__');
|
||||
File output = folder.getChildAssumingFile(relativePath);
|
||||
String rendered = InstrumentationRenderer(info).render();
|
||||
output.writeAsStringSync(rendered);
|
||||
|
|
|
@ -300,10 +300,7 @@ void test() {
|
|||
await performFix(
|
||||
includedFixes: ['non-nullable'], outputDir: outputDir.path);
|
||||
expect(outputDir.exists, true);
|
||||
// TODO(https://github.com/dart-lang/sdk/issues/38574): Fix Windows.
|
||||
if (path.style != path.Style.windows) {
|
||||
expect(outputDir.getChildren(), isNotEmpty);
|
||||
}
|
||||
expect(outputDir.getChildren(), isNotEmpty);
|
||||
}
|
||||
|
||||
test_dartfix_partFile() async {
|
||||
|
|
Loading…
Reference in a new issue