anchor.diff:      });
   
       testWidgets('constrained menus show up in the right place in LTR', (WidgetTester tester) async {
  -      await tester.binding.setSurfaceSize(const Size(300, 300));
  +      await changeSurfaceSize(tester, const Size(300, 300));
         await tester.pumpWidget(
           MaterialApp(
             home: Builder(
  
positive.code:     });
  
      testWidgets('constrained menus show up in the right place in RTL', (WidgetTester tester) async {
        await tester.binding.setSurfaceSize(const Size(300, 300));
        await tester.pumpWidget(
          MaterialApp(
            home: Builder(
  
negative.code:     controller = MenuController();
      focusedMenu = null;
    });
  
    Future<void> changeSurfaceSize(WidgetTester tester, Size size) async {
      await tester.binding.setSurfaceSize(size);
      addTearDown(() async {
        await tester.binding.setSurfaceSize(defaultSize);
      });
    }
  
    void listenForFocusChanges() {
      FocusManager.instance.addListener(handleFocusChange);
  