Fix scroll key for bad scroll benchmark (#110440)
This commit is contained in:
@@ -104,7 +104,10 @@ class ComplexLayoutState extends State<ComplexLayout> {
|
||||
},
|
||||
);
|
||||
if (widget.badScroll) {
|
||||
body = ListView(children: <Widget>[body]);
|
||||
body = ListView(
|
||||
key: const Key('complex-scroll-bad'),
|
||||
children: <Widget>[body],
|
||||
);
|
||||
}
|
||||
|
||||
return Scaffold(
|
||||
|
||||
@@ -53,7 +53,7 @@ void main() {
|
||||
}
|
||||
|
||||
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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user