Fix tests (#12132)
Fixes some tests that weren't aggressively catching exceptions. Fixes some actual failures that were found because of this. Tries to fix an intermittent failure with crash1_test.dart which could be a race condition.
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
class LifecycleWatcher extends StatefulWidget {
|
||||
const LifecycleWatcher({ Key key }) : super(key: key);
|
||||
|
||||
@override
|
||||
_LifecycleWatcherState createState() => new _LifecycleWatcherState();
|
||||
}
|
||||
@@ -42,7 +44,12 @@ class _LifecycleWatcherState extends State<LifecycleWatcher>
|
||||
|
||||
|
||||
void main() {
|
||||
runApp(new Center(
|
||||
child: new LifecycleWatcher()
|
||||
));
|
||||
runApp(
|
||||
const Directionality(
|
||||
textDirection: TextDirection.ltr,
|
||||
child: const Center(
|
||||
child: const LifecycleWatcher(),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user