Added GalleryApp testMode (#17640)

This commit is contained in:
Hans Muller
2018-05-16 11:42:39 -07:00
committed by GitHub
parent 0cbda7d68d
commit 580c844c2f
13 changed files with 108 additions and 71 deletions

View File

@@ -14,7 +14,7 @@ void main() {
testWidgets('Flutter gallery button example code displays', (WidgetTester tester) async {
// Regression test for https://github.com/flutter/flutter/issues/6147
await tester.pumpWidget(const GalleryApp());
await tester.pumpWidget(const GalleryApp(testMode: true));
await tester.pump(); // see https://github.com/flutter/flutter/issues/1865
await tester.pump(); // triggers a frame