[devicelab] add regular old blur benchmark (#123879)

[devicelab] add regular old blur benchmark
This commit is contained in:
Jonah Williams
2023-03-31 13:54:51 -07:00
committed by GitHub
parent db5434e566
commit 54dbbd76b8
10 changed files with 174 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:macrobenchmarks/common.dart';
import 'util.dart';
void main() {
macroPerfTest(
'animated_blur_backdrop_filter_perf',
kAnimatedBlurBackdropFilter,
pageDelay: const Duration(seconds: 1),
duration: const Duration(seconds: 10),
);
}

View File

@@ -23,7 +23,7 @@ Future<void> runDriverTestForRoute(String routeName, DriverTestCallBack body) as
expect(scrollable, isNotNull);
final SerializableFinder button = find.byValueKey(routeName);
expect(button, isNotNull);
await driver.scrollUntilVisible(scrollable, button, dyScroll: -50.0);
await driver.scrollUntilVisible(scrollable, button, dyScroll: -100.0);
await driver.tap(button);
await body(driver);