Made test PopupMenuInterceptorTest pass on Mac OS.