Clean up the bindings APIs (#86388)

This commit is contained in:
Ian Hickson
2021-07-13 18:31:11 -07:00
committed by GitHub
parent 13a84f5a22
commit 31de052e3f
248 changed files with 1614 additions and 1266 deletions

View File

@@ -32,18 +32,18 @@ void main() {
test('Image cache tracing', () async {
final TestImageStreamCompleter completer1 = TestImageStreamCompleter();
final TestImageStreamCompleter completer2 = TestImageStreamCompleter();
PaintingBinding.instance!.imageCache!.putIfAbsent(
PaintingBinding.instance.imageCache.putIfAbsent(
'Test',
() => completer1,
);
PaintingBinding.instance!.imageCache!.clear();
PaintingBinding.instance.imageCache.clear();
completer2.testSetImage(ImageInfo(image: await createTestImage()));
PaintingBinding.instance!.imageCache!.putIfAbsent(
PaintingBinding.instance.imageCache.putIfAbsent(
'Test2',
() => completer2,
);
PaintingBinding.instance!.imageCache!.evict('Test2');
PaintingBinding.instance.imageCache.evict('Test2');
final Timeline timeline = await vmService.getVMTimeline();
_expectTimelineEvents(