mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The PR is moving FlutterLogo from `lib/src/material` to `lib/src/widgets` because it has no dependency on Material. Issue: https://github.com/flutter/flutter/issues/154448 PS: There is [older PR](https://github.com/flutter/flutter/pull/154711) for this issue and I don't know the policy on conflicting PRs. Let me know if I need to drop mine.
24 lines
669 B
Dart
24 lines
669 B
Dart
// 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.
|
|
|
|
// This file is run as part of a reduced test set in CI on Mac and Windows
|
|
// machines.
|
|
@Tags(<String>['reduced-test-set'])
|
|
library;
|
|
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
void main() {
|
|
testWidgets('Flutter Logo golden test', (WidgetTester tester) async {
|
|
final Key logo = UniqueKey();
|
|
await tester.pumpWidget(FlutterLogo(key: logo));
|
|
|
|
await expectLater(
|
|
find.byKey(logo),
|
|
matchesGoldenFile('flutter_logo.png'),
|
|
);
|
|
});
|
|
}
|