// Copyright 2018 The Chromium Authors. All rights reserved.// Use of this source code is governed by a BSD-style license that can be// found in the LICENSE file.
import'package:flutter/widgets.dart';import'package:flutter_test/flutter_test.dart';voidmain(){testWidgets('WidgetsApp with builder only',(WidgetTestertester)async{finalGlobalKeykey=GlobalKey();awaittester.pumpWidget(WidgetsApp(key:key,builder:(BuildContextcontext,Widgetchild){returnconstPlaceholder();},color:constColor(0xFF123456),),);expect(find.byKey(key),findsOneWidget);});}