mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 03:17:55 +00:00
Fix AnalysisDriverCachingTest on Windows.
Change-Id: I4b10e4fb5ebbf9d3e12ce5b8217d8d86564ae4f1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/214509 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
84c56cc846
commit
5f18cd99a4
|
@ -18,6 +18,8 @@ main() {
|
||||||
|
|
||||||
@reflectiveTest
|
@reflectiveTest
|
||||||
class AnalysisDriverCachingTest extends PubPackageResolutionTest {
|
class AnalysisDriverCachingTest extends PubPackageResolutionTest {
|
||||||
|
String get testFilePathPlatform => convertPath(testFilePath);
|
||||||
|
|
||||||
List<Set<String>> get _linkedCycles {
|
List<Set<String>> get _linkedCycles {
|
||||||
var driver = driverFor(testFilePath);
|
var driver = driverFor(testFilePath);
|
||||||
return driver.test.libraryContext.linkedCycles;
|
return driver.test.libraryContext.linkedCycles;
|
||||||
|
@ -30,7 +32,7 @@ class A {
|
||||||
}
|
}
|
||||||
''');
|
''');
|
||||||
|
|
||||||
driverFor(testFilePath).changeFile(testFilePath);
|
driverFor(testFilePathPlatform).changeFile(testFilePathPlatform);
|
||||||
await resolveTestCode(r'''
|
await resolveTestCode(r'''
|
||||||
class A {
|
class A {
|
||||||
factory A() =;
|
factory A() =;
|
||||||
|
@ -46,7 +48,7 @@ class A {
|
||||||
}
|
}
|
||||||
''');
|
''');
|
||||||
|
|
||||||
driverFor(testFilePath).changeFile(testFilePath);
|
driverFor(testFilePathPlatform).changeFile(testFilePathPlatform);
|
||||||
await resolveTestCode(r'''
|
await resolveTestCode(r'''
|
||||||
class A {
|
class A {
|
||||||
factory A() =
|
factory A() =
|
||||||
|
@ -62,7 +64,7 @@ class A {
|
||||||
}
|
}
|
||||||
''');
|
''');
|
||||||
|
|
||||||
driverFor(testFilePath).changeFile(testFilePath);
|
driverFor(testFilePathPlatform).changeFile(testFilePathPlatform);
|
||||||
await resolveTestCode(r'''
|
await resolveTestCode(r'''
|
||||||
class A {
|
class A {
|
||||||
const
|
const
|
||||||
|
|
Loading…
Reference in a new issue