make sure tests and becnhmarks use correct backend (#72628)

This commit is contained in:
nturgut
2020-12-21 09:55:23 -08:00
committed by GitHub
parent 612ef20955
commit 14206399c3
3 changed files with 6 additions and 2 deletions

View File

@@ -29,6 +29,8 @@ Future<TaskResult> runWebBenchmark({ @required bool useCanvasKit }) async {
await evalFlutter('build', options: <String>[
'web',
'--dart-define=FLUTTER_WEB_ENABLE_PROFILING=true',
if (!useCanvasKit)
'--dart-define=FLUTTER_WEB_USE_SKIA=false',
if (useCanvasKit)
'--dart-define=FLUTTER_WEB_USE_SKIA=true',
'--profile',