[devicelab] add regular old blur benchmark (#123879)
[devicelab] add regular old blur benchmark
This commit is contained in:
@@ -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),
|
||||
);
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user