Reland: fix and add painting web tests (#42689)

This commit is contained in:
Yegor
2019-10-14 21:22:44 -07:00
committed by GitHub
parent adf9d6f78a
commit 3bc3b323c4
7 changed files with 16 additions and 7 deletions

View File

@@ -277,6 +277,7 @@ Future<void> main() async {
// The following parameters are hard-coded in Flutter's test embedder. Since
// we don't have an embedder yet this is the lowest-most layer we can put
// this stuff in.
ui.debugEmulateFlutterTesterEnvironment = true;
await ui.webOnlyInitializeEngine();
// TODO(flutterweb): remove need for dynamic cast.
(ui.window as dynamic).debugOverrideDevicePixelRatio(3.0);