Fix scroll key for bad scroll benchmark (#110440)
diff --git a/dev/benchmarks/complex_layout/lib/src/app.dart b/dev/benchmarks/complex_layout/lib/src/app.dart
index 1a544ed..21c03d6 100644
--- a/dev/benchmarks/complex_layout/lib/src/app.dart
+++ b/dev/benchmarks/complex_layout/lib/src/app.dart
@@ -104,7 +104,10 @@
},
);
if (widget.badScroll) {
- body = ListView(children: <Widget>[body]);
+ body = ListView(
+ key: const Key('complex-scroll-bad'),
+ children: <Widget>[body],
+ );
}
return Scaffold(
diff --git a/dev/benchmarks/complex_layout/test_driver/scroll_perf_bad_test.dart b/dev/benchmarks/complex_layout/test_driver/scroll_perf_bad_test.dart
index 106b32f..6778b55 100644
--- a/dev/benchmarks/complex_layout/test_driver/scroll_perf_bad_test.dart
+++ b/dev/benchmarks/complex_layout/test_driver/scroll_perf_bad_test.dart
@@ -53,7 +53,7 @@
}
test('complex_layout_scroll_perf', () async {
- await testScrollPerf('complex-scroll', 'complex_layout_scroll_perf');
+ await testScrollPerf('complex-scroll-bad', 'complex_layout_scroll_perf');
}, timeout: Timeout.none);
});
}