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']) |
6 | library; |
7 | |
8 | import 'package:flutter/material.dart'; |
9 | import 'package:flutter_test/flutter_test.dart'; |
10 | import 'package:integration_test/integration_test.dart'; |
11 | |
12 | void 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 |