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:
Ian Hickson
2017-09-18 13:42:06 -07:00
committed by GitHub
parent 39cfaa72b9
commit 88cd043d01
19 changed files with 61 additions and 26 deletions

View File

@@ -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(),
),
),
);
}