anchor.diff:      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);
  
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:   final List<TestMenu> opened = <TestMenu>[];
    final List<TestMenu> closed = <TestMenu>[];
    final GlobalKey menuItemKey = GlobalKey();
    late Size defaultSize;
  
    void onPressed(TestMenu item) {
      selected.add(item);
  