// Copyright 2017 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_test/flutter_test.dart';import'package:flutter/widgets.dart';voidmain(){testWidgets('ErrorWidget.builder',(WidgetTestertester)async{ErrorWidget.builder=(FlutterErrorDetailsdetails){returnconstText('oopsie!',textDirection:TextDirection.ltr);};awaittester.pumpWidget(newSizedBox(child:newBuilder(builder:(BuildContextcontext){throw'test';},),),);expect(tester.takeException().toString(),'test');expect(find.text('oopsie!'),findsOneWidget);});}