| Index: pkg/analyzer/test/src/dart/analysis/driver_test.dart
|
| diff --git a/pkg/analyzer/test/src/dart/analysis/driver_test.dart b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
|
| index 2a7aa90d71226a439bffc12f52d442e3e982aff0..7fcf61d0c0a8c2c4a1a8748a420da85e2c235425 100644
|
| --- a/pkg/analyzer/test/src/dart/analysis/driver_test.dart
|
| +++ b/pkg/analyzer/test/src/dart/analysis/driver_test.dart
|
| @@ -1556,6 +1556,26 @@ main() {
|
| expect(unitResult.element.types.map((e) => e.name), ['A']);
|
| }
|
|
|
| + test_getUnitElementSignature() async {
|
| + var a = _p('/test/lib/a.dart');
|
| +
|
| + provider.newFile(a, 'foo() {}');
|
| +
|
| + String signature = await driver.getUnitElementSignature(a);
|
| + expect(signature, isNotNull);
|
| +
|
| + UnitElementResult unitResult = await driver.getUnitElement(a);
|
| + expect(unitResult.path, a);
|
| + expect(unitResult.signature, signature);
|
| +
|
| + provider.updateFile(a, 'bar() {}');
|
| + driver.changeFile(a);
|
| +
|
| + String signature2 = await driver.getUnitElementSignature(a);
|
| + expect(signature2, isNotNull);
|
| + expect(signature2, isNot(signature));
|
| + }
|
| +
|
| test_hasFilesToAnalyze() async {
|
| // No files yet, nothing to analyze.
|
| expect(driver.hasFilesToAnalyze, isFalse);
|
|
|