mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +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 {
|
test('Image painting events - deduplicates across frames', () async {
|
||||||
final Completer<Event> completer = Completer<Event>();
|
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 ui.Image image = await createTestImage(width: 300, height: 300);
|
||||||
final TestCanvas canvas = TestCanvas();
|
final TestCanvas canvas = TestCanvas();
|
||||||
@ -76,7 +79,10 @@ void main() {
|
|||||||
|
|
||||||
test('Image painting events - deduplicates across frames', () async {
|
test('Image painting events - deduplicates across frames', () async {
|
||||||
final Completer<Event> completer = Completer<Event>();
|
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 ui.Image image = await createTestImage(width: 300, height: 300);
|
||||||
final TestCanvas canvas = TestCanvas();
|
final TestCanvas canvas = TestCanvas();
|
||||||
|
Loading…
Reference in New Issue
Block a user