Adds dart_fix support to integration_test (#129579)
* Adds fix for `IntegrationTestWidgetsFlutterBinding.runTest(timeout)` to support first round of deprecations for `flutter_test` Resolves #124346
This commit is contained in:
0
packages/integration_test/test_fixes/.dartignore
Normal file
0
packages/integration_test/test_fixes/.dartignore
Normal file
@@ -0,0 +1 @@
|
||||
# This ensures that parent analysis options do not accidentally break the fix tests.
|
||||
@@ -0,0 +1,15 @@
|
||||
// Copyright 2014 The Flutter 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:integration_test/integration_test.dart';
|
||||
|
||||
void main() {
|
||||
final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
binding.runTest(
|
||||
() async { },
|
||||
() { },
|
||||
// Changes made in https://github.com/flutter/flutter/pull/89952
|
||||
timeout: Duration(minutes: 30),
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// Copyright 2014 The Flutter 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:integration_test/integration_test.dart';
|
||||
|
||||
void main() {
|
||||
final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized();
|
||||
binding.runTest(
|
||||
() async { },
|
||||
() { },
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user