[web] Remove usage of ui.webOnlyInitializePlatform() (#131344)

Part of https://github.com/flutter/flutter/issues/126831
This commit is contained in:
Mouad Debbar 2023-08-07 17:27:11 -04:00 committed by GitHub
parent 0448a11c86
commit ad0dbc8de5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,7 +229,7 @@ String generateTestEntrypoint({
Future<void> main() async { Future<void> main() async {
ui_web.debugEmulateFlutterTesterEnvironment = true; ui_web.debugEmulateFlutterTesterEnvironment = true;
await ui.webOnlyInitializePlatform(); await ui_web.bootstrapEngine();
webGoldenComparator = DefaultWebGoldenComparator(Uri.parse('${Uri.file(absolutePath)}')); webGoldenComparator = DefaultWebGoldenComparator(Uri.parse('${Uri.file(absolutePath)}'));
(ui.window as dynamic).debugOverrideDevicePixelRatio(3.0); (ui.window as dynamic).debugOverrideDevicePixelRatio(3.0);
(ui.window as dynamic).webOnlyDebugPhysicalSizeOverride = const ui.Size(2400, 1800); (ui.window as dynamic).webOnlyDebugPhysicalSizeOverride = const ui.Size(2400, 1800);