1// Copyright 2014 The Flutter 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
5@Tags(<String>['reduced-test-set'])
6library;
7
8import 'package:flutter/material.dart';
9import 'package:flutter_test/flutter_test.dart';
10import 'package:integration_test/integration_test.dart';
11
12void main() {
13 IntegrationTestWidgetsFlutterBinding.ensureInitialized();
14
15 testWidgets('a screenshot of a Placeholder', (WidgetTester tester) async {
16 await tester.pumpWidget(const Placeholder());
17
18 await expectLater(find.byType(Placeholder), matchesGoldenFile('placeholder.png'));
19 });
20}
21

Provided by KDAB

Privacy Policy
Learn more about Flutter for embedded and desktop on industrialflutter.com