• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2016 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5import 'package:flutter_test/flutter_test.dart';
6import 'package:hello_world/main.dart' as hello_world;
7
8void main() {
9  testWidgets('Hello world smoke test', (WidgetTester tester) async {
10    hello_world.main(); // builds the app and schedules a frame but doesn't trigger one
11    await tester.pump(); // triggers a frame
12
13    expect(find.text('Hello, world!'), findsOneWidget);
14  });
15}
16