diff --git a/lib/web_ui/test/engine/platform_dispatcher/platform_dispatcher_test.dart b/lib/web_ui/test/engine/platform_dispatcher/platform_dispatcher_test.dart index 815b209d874f9..ea2e9b7037c0d 100644 --- a/lib/web_ui/test/engine/platform_dispatcher/platform_dispatcher_test.dart +++ b/lib/web_ui/test/engine/platform_dispatcher/platform_dispatcher_test.dart @@ -9,6 +9,7 @@ import 'package:test/bootstrap/browser.dart'; import 'package:test/test.dart'; import 'package:ui/src/engine.dart'; import 'package:ui/ui.dart' as ui; +import 'package:ui/ui_web/src/ui_web.dart' as ui_web; import '../../common/test_initialization.dart'; @@ -17,15 +18,13 @@ void main() { } void testMain() { - setUpImplicitView(); - - setUpAll(() async { - await renderer.initialize(); - }); - group('PlatformDispatcher', () { late EnginePlatformDispatcher dispatcher; + setUpAll(() async { + await bootstrapAndRunApp(withImplicitView: true); + }); + setUp(() { dispatcher = EnginePlatformDispatcher(); }); @@ -437,7 +436,8 @@ void testMain() { expect(beginFrameCalled, true); expect(drawFrameCalled.isCompleted, true); }); - }); + // https://github.com/flutter/flutter/issues/160096 + }, skip: ui_web.browser.isFirefox); } class MockHighContrastSupport implements HighContrastSupport {