// 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/material/input_chip/input_chip.0.dart'asexample;import'package:flutter_test/flutter_test.dart';voidmain(){testWidgets('',(WidgetTestertester)async{awaittester.pumpWidget(constexample.ChipApp(),);expect(find.byType(InputChip),findsNWidgets(3));awaittester.tap(find.byIcon(Icons.clear).at(0));awaittester.pumpAndSettle();expect(find.byType(InputChip),findsNWidgets(2));awaittester.tap(find.byIcon(Icons.clear).at(0));awaittester.pumpAndSettle();expect(find.byType(InputChip),findsNWidgets(1));awaittester.tap(find.byIcon(Icons.clear).at(0));awaittester.pumpAndSettle();expect(find.byType(InputChip),findsNWidgets(0));awaittester.tap(find.text('Reset'));awaittester.pumpAndSettle();expect(find.byType(InputChip),findsNWidgets(3));});}