From 9dfa95b3e105330e52a5ed216c8297f999359a6b Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 11 May 2015 10:30:21 -0400 Subject: [PATCH] Added a test of having multiple consecutive separators in, separators at the start of, and separators at the end of a menu. How OS X behaves is the deciding factor here. --- test/menus.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/menus.c b/test/menus.c index 5ee264d2..8c7e0d02 100644 --- a/test/menus.c +++ b/test/menus.c @@ -22,6 +22,7 @@ uiMenuItem *quitEnabledItem; uiMenuItem *prefsEnabledItem; uiMenuItem *aboutEnabledItem; uiMenuItem *checkEnabledItem; +uiMenu *multiMenu; uiMenu *helpMenu; uiMenuItem *helpItem; uiMenuItem *aboutItem; @@ -90,6 +91,16 @@ void initMenus(void) checkEnabledItem = uiMenuAppendCheckItem(moreTestsMenu, "Check Me Item Enabled"); uiMenuItemSetChecked(checkEnabledItem, 1); + multiMenu = uiNewMenu("Multi"); + uiMenuAppendSeparator(multiMenu); + uiMenuAppendSeparator(multiMenu); + uiMenuAppendItem(multiMenu, "Item"); + uiMenuAppendSeparator(multiMenu); + uiMenuAppendSeparator(multiMenu); + uiMenuAppendItem(multiMenu, "Item"); + uiMenuAppendSeparator(multiMenu); + uiMenuAppendSeparator(multiMenu); + helpMenu = uiNewMenu("Help"); helpItem = uiMenuAppendItem(helpMenu, "Help"); aboutItem = uiMenuAppendAboutItem(helpMenu);