anchor.diff:        expect(matches[1].name, equals('Framework Workload'));
         expect(matches[2].name, equals('Engine::BeginFrame'));
         expect(matches[3].name, equals('Frame'));
  -
  -      await env.tearDownEnvironment();
       });
   
       test('search query searches through previous matches', () async {
  -      await env.setupEnvironment();
  -
         await performanceController.clearData();
         performanceController.addTimelineEvent(goldenUiTimelineEvent..deepCopy());
   
  
positive.code: // found in the LICENSE file.
  
  @TestOn('vm')
  import 'package:devtools_app/src/config_specific/import_export/import_export.dart';
  import 'package:devtools_app/src/primitives/trace_event.dart';
  import 'package:devtools_app/src/primitives/utils.dart';
  import 'package:devtools_app/src/screens/performance/performance_controller.dart';
  import 'package:devtools_app/src/screens/performance/performance_model.dart';
  import 'package:devtools_app/src/shared/globals.dart';
  import 'package:devtools_test/devtools_test.dart';
  import 'package:flutter_test/flutter_test.dart';
  
  import '../test_data/performance.dart';
  import '../test_infra/flutter_test_driver.dart' show FlutterRunConfiguration;
  import '../test_infra/flutter_test_environment.dart';
  
  void main() async {
    initializeLiveTestWidgetsFlutterBindingWithAssets();
  
    final FlutterTestEnvironment env = FlutterTestEnvironment(
      const FlutterRunConfiguration(withDebugger: true),
    );
  
    late PerformanceController performanceController;
    env.afterNewSetup = () async {
      setGlobal(OfflineModeController, OfflineModeController());
      performanceController = PerformanceController()..data = PerformanceData();
      await performanceController.initialized;
    };
  
    group('PerformanceController', () {
      setUp(() {
        // This flag should never be turned on in production.
        expect(debugSimpleTrace, isFalse);
      });
  
      tearDownAll(() async {
        await env.tearDownEnvironment(force: true);
      });
  
      test(
        'processOfflineData',
        () async {
          await env.setupEnvironment();
          offlineController.enterOfflineMode();
          final offlinePerformanceData =
              OfflinePerformanceData.parse(offlinePerformanceDataJson);
  
negative.code:           performanceController.displayRefreshRate.value,
            equals(offlinePerformanceData.displayRefreshRate),
          );
        },
        timeout: const Timeout.factor(8),
      );
  
      test('frame selection', () async {
        final frame0 = testFrame0.shallowCopy()
          ..setEventFlow(goldenUiTimelineEvent)
          ..setEventFlow(goldenRasterTimelineEvent);
  