mirror of
https://github.com/flutter/flutter
synced 2024-10-13 03:32:55 +00:00
deflake image_painting_event_test (#80871)
This commit is contained in:
parent
1f8e9ff7a7
commit
362eefeeca
|
@ -43,7 +43,10 @@ void main() {
|
|||
|
||||
test('Image painting events - deduplicates across frames', () async {
|
||||
final Completer<Event> completer = Completer<Event>();
|
||||
vmService.onExtensionEvent.first.then(completer.complete);
|
||||
vmService
|
||||
.onExtensionEvent
|
||||
.firstWhere((Event event) => event.extensionKind == 'Flutter.ImageSizesForFrame')
|
||||
.then(completer.complete);
|
||||
|
||||
final ui.Image image = await createTestImage(width: 300, height: 300);
|
||||
final TestCanvas canvas = TestCanvas();
|
||||
|
@ -76,7 +79,10 @@ void main() {
|
|||
|
||||
test('Image painting events - deduplicates across frames', () async {
|
||||
final Completer<Event> completer = Completer<Event>();
|
||||
vmService.onExtensionEvent.first.then(completer.complete);
|
||||
vmService
|
||||
.onExtensionEvent
|
||||
.firstWhere((Event event) => event.extensionKind == 'Flutter.ImageSizesForFrame')
|
||||
.then(completer.complete);
|
||||
|
||||
final ui.Image image = await createTestImage(width: 300, height: 300);
|
||||
final TestCanvas canvas = TestCanvas();
|
||||
|
|
Loading…
Reference in a new issue