Unverified Commit 1560d0ce authored by Chris Yang's avatar Chris Yang Committed by GitHub

[Benchmark: platform_views_layout] show and hide more PlatformViews (#110688)

parent 0c82d967
...@@ -33,6 +33,7 @@ void main() { ...@@ -33,6 +33,7 @@ void main() {
final SerializableFinder list = find.byValueKey(listKey); final SerializableFinder list = find.byValueKey(listKey);
expect(list, isNotNull); expect(list, isNotNull);
for (int j = 0; j < 5; j ++) {
// Scroll down // Scroll down
for (int i = 0; i < 5; i += 1) { for (int i = 0; i < 5; i += 1) {
await driver.scroll(list, 0.0, -300.0, const Duration(milliseconds: 300)); await driver.scroll(list, 0.0, -300.0, const Duration(milliseconds: 300));
...@@ -44,6 +45,7 @@ void main() { ...@@ -44,6 +45,7 @@ void main() {
await driver.scroll(list, 0.0, 300.0, const Duration(milliseconds: 300)); await driver.scroll(list, 0.0, 300.0, const Duration(milliseconds: 300));
await Future<void>.delayed(const Duration(milliseconds: 500)); await Future<void>.delayed(const Duration(milliseconds: 500));
} }
}
}); });
final TimelineSummary summary = TimelineSummary.summarize(timeline); final TimelineSummary summary = TimelineSummary.summarize(timeline);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment