Home
last modified time | relevance | path

Searched refs:popupMenu (Results 1 – 3 of 3) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowPopupMenuTest.java18 private PopupMenu popupMenu; field in ShadowPopupMenuTest
24 popupMenu = new PopupMenu(ApplicationProvider.getApplicationContext(), anchorView); in setUp()
25 shadowPopupMenu = shadowOf(popupMenu); in setUp()
35 popupMenu.show(); in testIsShowing_returnsTrueIfShown()
41 popupMenu.show(); in testIsShowing_returnsFalseIfShownThenDismissed()
42 popupMenu.dismiss(); in testIsShowing_returnsFalseIfShownThenDismissed()
53 popupMenu.show(); in getLatestPopupMenu_returnsLastMenuShown()
54 assertThat(ShadowPopupMenu.getLatestPopupMenu()).isEqualTo(popupMenu); in getLatestPopupMenu_returnsLastMenuShown()
59 assertThat(shadowOf(popupMenu).getOnMenuItemClickListener()).isNull(); in getOnClickListener_returnsOnClickListener()
67 popupMenu.setOnMenuItemClickListener(listener); in getOnClickListener_returnsOnClickListener()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPopupMenu.java46 ShadowPopupMenu popupMenu = shadowApplication.getLatestPopupMenu(); in getLatestPopupMenu() local
47 return popupMenu == null ? null : popupMenu.realPopupMenu; in getLatestPopupMenu()
/external/python/cpython2/Mac/Modules/ctl/
D_Ctlmodule.c1566 MenuHandle popupMenu; in CtlObj_SetControlPopupMenuHandle() local
1571 MenuObj_Convert, &popupMenu)) in CtlObj_SetControlPopupMenuHandle()
1574 popupMenu); in CtlObj_SetControlPopupMenuHandle()