// 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'dart:ui';import'package:flutter/material.dart';import'package:flutter_api_samples/ui/text/font_feature.font_feature_alternative.0.dart'asexample;import'package:flutter_test/flutter_test.dart';voidmain(){testWidgets('shows font features',(WidgetTestertester)async{awaittester.pumpWidget(constMaterialApp(home:example.ExampleWidget(),),);expect(find.byType(Text),findsOneWidget);expect((tester.widget(find.byType(Text).first)asText).style!.fontFamily,equals('Raleway'));expect((tester.widget(find.byType(Text).first)asText).style!.fontFeatures,equals(const<FontFeature>[FontFeature.alternative(1)]));});}