// 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/material.dart';import'package:flutter_api_samples/cupertino/context_menu/cupertino_context_menu.0.dart'asexample;import'package:flutter_test/flutter_test.dart';voidmain(){testWidgets('Can open cupertino context menu',(WidgetTestertester)async{awaittester.pumpWidget(constexample.ContextMenuApp(),);finalOffsetlogo=tester.getCenter(find.byType(FlutterLogo));expect(find.text('Favorite'),findsNothing);awaittester.startGesture(logo);awaittester.pumpAndSettle();expect(find.text('Favorite'),findsOneWidget);awaittester.tap(find.text('Favorite'));awaittester.pumpAndSettle();expect(find.text('Favorite'),findsNothing);});}