some formatting of map, parameters and spaces (#29760)
This commit is contained in:
committed by
GitHub
parent
ecfdd7e1ea
commit
bfa1d25bf9
@@ -231,7 +231,8 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
|
||||
/// [AutomatedTestWidgetsFlutterBinding] implementation to increase the
|
||||
/// current timeout. See [AutomatedTestWidgetsFlutterBinding.addTime] for
|
||||
/// details. The value is ignored by the [LiveTestWidgetsFlutterBinding].
|
||||
Future<T> runAsync<T>(Future<T> callback(), {
|
||||
Future<T> runAsync<T>(
|
||||
Future<T> callback(), {
|
||||
Duration additionalTime = const Duration(milliseconds: 1000),
|
||||
});
|
||||
|
||||
@@ -740,7 +741,8 @@ class AutomatedTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<T> runAsync<T>(Future<T> callback(), {
|
||||
Future<T> runAsync<T>(
|
||||
Future<T> callback(), {
|
||||
Duration additionalTime = const Duration(milliseconds: 1000),
|
||||
}) {
|
||||
assert(additionalTime != null);
|
||||
@@ -1249,7 +1251,8 @@ class LiveTestWidgetsFlutterBinding extends TestWidgetsFlutterBinding {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<T> runAsync<T>(Future<T> callback(), {
|
||||
Future<T> runAsync<T>(
|
||||
Future<T> callback(), {
|
||||
Duration additionalTime = const Duration(milliseconds: 1000),
|
||||
}) async {
|
||||
assert(() {
|
||||
|
||||
@@ -654,7 +654,9 @@ class _ElementPredicateFinder extends MatchFinder {
|
||||
}
|
||||
|
||||
class _DescendantFinder extends Finder {
|
||||
_DescendantFinder(this.ancestor, this.descendant, {
|
||||
_DescendantFinder(
|
||||
this.ancestor,
|
||||
this.descendant, {
|
||||
this.matchRoot = false,
|
||||
bool skipOffstage = true,
|
||||
}) : super(skipOffstage: skipOffstage);
|
||||
|
||||
@@ -409,7 +409,8 @@ class WidgetTester extends WidgetController implements HitTestDispatcher, Ticker
|
||||
/// are required to wait for the returned future to complete before calling
|
||||
/// this method again. Attempts to do otherwise will result in a
|
||||
/// [TestFailure] error being thrown.
|
||||
Future<T> runAsync<T>(Future<T> callback(), {
|
||||
Future<T> runAsync<T>(
|
||||
Future<T> callback(), {
|
||||
Duration additionalTime = const Duration(milliseconds: 1000),
|
||||
}) => binding.runAsync<T>(callback, additionalTime: additionalTime);
|
||||
|
||||
|
||||
@@ -315,9 +315,11 @@ class TestWindow implements Window {
|
||||
}
|
||||
|
||||
@override
|
||||
void sendPlatformMessage(String name,
|
||||
ByteData data,
|
||||
PlatformMessageResponseCallback callback) {
|
||||
void sendPlatformMessage(
|
||||
String name,
|
||||
ByteData data,
|
||||
PlatformMessageResponseCallback callback,
|
||||
) {
|
||||
_window.sendPlatformMessage(name, data, callback);
|
||||
}
|
||||
|
||||
|
||||
@@ -162,6 +162,5 @@ class SimpleCustomSemanticsRenderObject extends RenderBox {
|
||||
void describeSemanticsConfiguration(SemanticsConfiguration config) {
|
||||
super.describeSemanticsConfiguration(config);
|
||||
config..label = label..textDirection = TextDirection.ltr;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user