Re-enable missing_return (#20844)

This commit is contained in:
Ian Hickson
2018-08-28 11:22:57 -07:00
committed by GitHub
parent 458d0b3d21
commit 53b635817c
48 changed files with 88 additions and 59 deletions

View File

@@ -281,7 +281,7 @@ void main() {
});
test('without clearing timeline', () async {
final Timeline timeline = await driver.traceAction(() {
final Timeline timeline = await driver.traceAction(() async {
log.add('action');
}, retainPriorEvents: true);
@@ -295,7 +295,7 @@ void main() {
});
test('with clearing timeline', () async {
final Timeline timeline = await driver.traceAction(() {
final Timeline timeline = await driver.traceAction(() async {
log.add('action');
});
@@ -338,7 +338,7 @@ void main() {
};
});
final Timeline timeline = await driver.traceAction(() {
final Timeline timeline = await driver.traceAction(() async {
actionCalled = true;
},
streams: const <TimelineStream>[

View File

@@ -74,7 +74,7 @@ void main() {
group('getSemanticsId', () {
FlutterDriverExtension extension;
setUp(() {
extension = new FlutterDriverExtension((String arg) async {}, true);
extension = new FlutterDriverExtension((String arg) async => '', true);
});
testWidgets('works when semantics are enabled', (WidgetTester tester) async {