mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:07:06 +00:00
Attempt to fix a failure on the windows bot
Change-Id: Icd170157c9b9db4965c47f7540ae80535f572c35 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/352400 Auto-Submit: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
55f5cd67eb
commit
2a4d527633
|
@ -844,8 +844,7 @@ C f() => C.named(); //
|
||||||
|
|
||||||
Future<void>
|
Future<void>
|
||||||
test_constructorInvocation_referenceFromAugmentation_default() async {
|
test_constructorInvocation_referenceFromAugmentation_default() async {
|
||||||
var filePath = '$testPackageLibPath/a.dart';
|
var file = newFile('$testPackageLibPath/a.dart', '''
|
||||||
newFile(filePath, '''
|
|
||||||
library augment 'test.dart';
|
library augment 'test.dart';
|
||||||
|
|
||||||
augment class C {
|
augment class C {
|
||||||
|
@ -862,7 +861,7 @@ class C {
|
||||||
C();
|
C();
|
||||||
}
|
}
|
||||||
''');
|
''');
|
||||||
var hover = await prepareHover('C();', inFile: filePath);
|
var hover = await prepareHover('C();', inFile: file.path);
|
||||||
expect(hover.containingLibraryName, 'package:test/test.dart');
|
expect(hover.containingLibraryName, 'package:test/test.dart');
|
||||||
expect(hover.containingLibraryPath, testFile.path);
|
expect(hover.containingLibraryPath, testFile.path);
|
||||||
expect(hover.containingClassDescription, 'C');
|
expect(hover.containingClassDescription, 'C');
|
||||||
|
@ -874,8 +873,7 @@ class C {
|
||||||
|
|
||||||
Future<void>
|
Future<void>
|
||||||
test_constructorInvocation_referenceFromAugmentation_named() async {
|
test_constructorInvocation_referenceFromAugmentation_named() async {
|
||||||
var filePath = '$testPackageLibPath/a.dart';
|
var file = newFile('$testPackageLibPath/a.dart', '''
|
||||||
newFile(filePath, '''
|
|
||||||
library augment 'test.dart';
|
library augment 'test.dart';
|
||||||
|
|
||||||
augment class C {
|
augment class C {
|
||||||
|
@ -892,7 +890,7 @@ class C {
|
||||||
C.named();
|
C.named();
|
||||||
}
|
}
|
||||||
''');
|
''');
|
||||||
var hover = await prepareHover('C.named();', inFile: filePath);
|
var hover = await prepareHover('C.named();', inFile: file.path);
|
||||||
expect(hover.containingLibraryName, 'package:test/test.dart');
|
expect(hover.containingLibraryName, 'package:test/test.dart');
|
||||||
expect(hover.containingLibraryPath, testFile.path);
|
expect(hover.containingLibraryPath, testFile.path);
|
||||||
expect(hover.containingClassDescription, 'C');
|
expect(hover.containingClassDescription, 'C');
|
||||||
|
@ -1416,8 +1414,7 @@ void f(C c) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> test_methodInvocation_referenceFromAugmentation() async {
|
Future<void> test_methodInvocation_referenceFromAugmentation() async {
|
||||||
var filePath = '$testPackageLibPath/a.dart';
|
var file = newFile('$testPackageLibPath/a.dart', '''
|
||||||
newFile(filePath, '''
|
|
||||||
library augment 'test.dart';
|
library augment 'test.dart';
|
||||||
|
|
||||||
augment class C {
|
augment class C {
|
||||||
|
@ -1434,7 +1431,7 @@ class C {
|
||||||
void n() {}
|
void n() {}
|
||||||
}
|
}
|
||||||
''');
|
''');
|
||||||
var hover = await prepareHover('n();', inFile: filePath);
|
var hover = await prepareHover('n();', inFile: file.path);
|
||||||
expect(hover.containingLibraryName, 'package:test/test.dart');
|
expect(hover.containingLibraryName, 'package:test/test.dart');
|
||||||
expect(hover.containingLibraryPath, testFile.path);
|
expect(hover.containingLibraryPath, testFile.path);
|
||||||
expect(hover.containingClassDescription, 'C');
|
expect(hover.containingClassDescription, 'C');
|
||||||
|
|
Loading…
Reference in a new issue