14 lines
503 B
Dart
14 lines
503 B
Dart
import 'dart:async';
|
|
import 'package:flutter_test/flutter_test.dart';
|
|
|
|
/// Functional chat tests settle asynchronous state with reduced motion. Tests
|
|
/// covering animation explicitly opt back in and pump known frame durations.
|
|
Future<void> testExecutable(FutureOr<void> Function() testMain) async {
|
|
TestWidgetsFlutterBinding.ensureInitialized()
|
|
.platformDispatcher
|
|
.accessibilityFeaturesTestValue = const FakeAccessibilityFeatures(
|
|
disableAnimations: true,
|
|
);
|
|
await testMain();
|
|
}
|