| Index: pkg/analyzer/test/src/context/context_test.dart
|
| diff --git a/pkg/analyzer/test/src/context/context_test.dart b/pkg/analyzer/test/src/context/context_test.dart
|
| index 252ed6268b8220d00f4ef3ad90e5b9e48d35d2a9..a851f55013cb35dd0e1293a146ce75ee23a92449 100644
|
| --- a/pkg/analyzer/test/src/context/context_test.dart
|
| +++ b/pkg/analyzer/test/src/context/context_test.dart
|
| @@ -448,6 +448,13 @@ import 'libB.dart';''';
|
| validator.sourceModificationTimesComputed([source1, source2],
|
| [source1.modificationStamp, source2.modificationStamp]),
|
| isFalse);
|
| + // Add overlay
|
| + context.setContents(source1, '// 1-2');
|
| + expect(
|
| + validator.sourceModificationTimesComputed([source1, source2],
|
| + [source1.modificationStamp + 1, source2.modificationStamp]),
|
| + isFalse);
|
| + context.setContents(source1, null);
|
| // Different modification times.
|
| expect(
|
| validator.sourceModificationTimesComputed([source1, source2],
|
| @@ -465,15 +472,7 @@ import 'libB.dart';''';
|
| Source source2 = resourceProvider.newFile(path2, '// 2-1').createSource();
|
| context.applyChanges(
|
| new ChangeSet()..addedSource(source1)..addedSource(source2));
|
| - // No overlays.
|
| - expect(validator.getSourcesToComputeModificationTimes(),
|
| - unorderedEquals([source1, source2]));
|
| - // Add an overlay.
|
| - context.setContents(source1, '// 1-2');
|
| - expect(validator.getSourcesToComputeModificationTimes(),
|
| - unorderedEquals([source2]));
|
| - // Remove an overlay.
|
| - context.setContents(source1, null);
|
| + // Verify.
|
| expect(validator.getSourcesToComputeModificationTimes(),
|
| unorderedEquals([source1, source2]));
|
| }
|
|
|