// 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:flutter/widgets.dart';import'package:flutter_test/flutter_test.dart';import'package:macrobenchmarks/common.dart';import'util.dart';voidmain(){macroPerfTestE2E('picture_cache_perf',kPictureCacheRouteName,pageDelay:constDuration(seconds:1),body:(WidgetControllercontroller)async{finalFindernestedScroll=find.byKey(constValueKey<String>('tabbar_view'));expect(nestedScroll,findsOneWidget);Future<void>_scrollOnce(doubleoffset)async{awaitcontroller.timedDrag(nestedScroll,Offset(-offset,0.0),constDuration(milliseconds:300),);awaitFuture<void>.delayed(constDuration(milliseconds:500));}for(inti=0;i<3;i+=1){await_scrollOnce(-300.0);await_scrollOnce(-300.0);await_scrollOnce(300.0);await_scrollOnce(300.0);}},);}