Fix URL construction in the test entry point generated by the web bootstrap script (#88201)

This commit is contained in:
Jason Simmons
2021-08-16 14:12:05 -07:00
committed by GitHub
parent e761e64983
commit ddb8bfb72b
2 changed files with 12 additions and 1 deletions

View File

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