• fzyzcjy's avatar
    Tiny fix inaccurate documentations about bindings (#140282) · 9e024fdf
    fzyzcjy authored
    The old doc says that, AutomatedTestWidgetsFlutterBinding for `flutter test` and LiveTestWidgetsFlutterBinding for `flutter run`. However, suppose we `flutter test integration_test/simple_test.dart` with the following code:
    
    ```
    void main() {
      testWidgets('hi', (WidgetTester tester) async {
        print('hi ${TestWidgetsFlutterBinding.instance} ${Platform.operatingSystem}');
      });
    }
    ```
    
    We will see: `hi <IntegrationTestWidgetsFlutterBinding> ios`. Therefore, we see `IntegrationTestWidgetsFlutterBinding` is used in a `flutter test` command, which is contrary to the documentation.
    9e024fdf
binding.dart 84.5 KB