Jonny Borges
Committed by GitHub

Update widget_test.dart

1 -// This is a basic Flutter widget test.  
2 -// To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter  
3 -// provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to  
4 -// find child widgets in the widget tree, read text, and verify that the values of widget properties  
5 -// are correct. 1 +// // This is a basic Flutter widget test.
  2 +// // To perform an interaction with a widget in your test, use the WidgetTester utility that Flutter
  3 +// // provides. For example, you can send tap and scroll gestures. You can also use WidgetTester to
  4 +// // find child widgets in the widget tree, read text, and verify that the values of widget properties
  5 +// // are correct.
6 6
7 -import 'package:flutter/material.dart';  
8 -import 'package:benckmark/_redux/app.dart';  
9 -import 'package:flutter_test/flutter_test.dart'; 7 +// import 'package:flutter/material.dart';
  8 +// import 'package:benckmark/_redux/app.dart';
  9 +// import 'package:flutter_test/flutter_test.dart';
10 10
11 -void main() {  
12 - testWidgets('Counter increments smoke test', (WidgetTester tester) async {  
13 - // Build our app and trigger a frame.  
14 - await tester.pumpWidget(App()); 11 +// void main() {
  12 +// testWidgets('Counter increments smoke test', (WidgetTester tester) async {
  13 +// // Build our app and trigger a frame.
  14 +// await tester.pumpWidget(App());
15 15
16 - // Verify that our counter starts at 0.  
17 - expect(find.text('0'), findsOneWidget);  
18 - expect(find.text('1'), findsNothing); 16 +// // Verify that our counter starts at 0.
  17 +// expect(find.text('0'), findsOneWidget);
  18 +// expect(find.text('1'), findsNothing);
19 19
20 - // Tap the '+' icon and trigger a frame.  
21 - await tester.tap(find.byIcon(Icons.add));  
22 - await tester.pump(); 20 +// // Tap the '+' icon and trigger a frame.
  21 +// await tester.tap(find.byIcon(Icons.add));
  22 +// await tester.pump();
23 23
24 - // Verify that our counter has incremented.  
25 - expect(find.text('0'), findsNothing);  
26 - expect(find.text('1'), findsOneWidget);  
27 - });  
28 -} 24 +// // Verify that our counter has incremented.
  25 +// expect(find.text('0'), findsNothing);
  26 +// expect(find.text('1'), findsOneWidget);
  27 +// });
  28 +// }