Unverified Commit 362eefee authored by Dan Field's avatar Dan Field Committed by GitHub

deflake image_painting_event_test (#80871)

parent 1f8e9ff7
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment