mirror of https://github.com/flutter/samples.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
838 B
25 lines
838 B
1 year ago
|
// This is a basic Flutter widget test.
|
||
|
//
|
||
|
// To perform an interaction with a widget in your test, use the WidgetTester
|
||
|
// utility in the flutter_test package. For example, you can send tap and scroll
|
||
|
// gestures. You can also use WidgetTester to find child widgets in the widget
|
||
|
// tree, read text, and verify that the values of widget properties are correct.
|
||
|
|
||
|
import 'package:flutter_test/flutter_test.dart';
|
||
|
import 'package:next_gen_ui_demo/assets.dart';
|
||
|
import 'package:next_gen_ui_demo/main.dart';
|
||
|
import 'package:provider/provider.dart';
|
||
|
|
||
|
void main() {
|
||
|
testWidgets('Smoke test', (tester) async {
|
||
|
// Build our app and trigger a frame.
|
||
|
await tester.pumpWidget(
|
||
|
FutureProvider<Shaders?>(
|
||
|
create: (context) => loadShaders(),
|
||
|
initialData: null,
|
||
|
child: const NextGenApp(),
|
||
|
),
|
||
|
);
|
||
|
});
|
||
|
}
|