import HIServices
from PyObjCTools.TestSupport import TestCase


class TestAXRoleConstants(TestCase):
    def testConstants(self):
        self.assertEqual(HIServices.kAXApplicationRole, "AXApplication")
        self.assertEqual(HIServices.kAXSystemWideRole, "AXSystemWide")
        self.assertEqual(HIServices.kAXWindowRole, "AXWindow")
        self.assertEqual(HIServices.kAXSheetRole, "AXSheet")
        self.assertEqual(HIServices.kAXDrawerRole, "AXDrawer")
        self.assertEqual(HIServices.kAXGrowAreaRole, "AXGrowArea")
        self.assertEqual(HIServices.kAXImageRole, "AXImage")
        self.assertEqual(HIServices.kAXUnknownRole, "AXUnknown")
        self.assertEqual(HIServices.kAXButtonRole, "AXButton")
        self.assertEqual(HIServices.kAXRadioButtonRole, "AXRadioButton")
        self.assertEqual(HIServices.kAXCheckBoxRole, "AXCheckBox")
        self.assertEqual(HIServices.kAXPopUpButtonRole, "AXPopUpButton")
        self.assertEqual(HIServices.kAXMenuButtonRole, "AXMenuButton")
        self.assertEqual(HIServices.kAXTabGroupRole, "AXTabGroup")
        self.assertEqual(HIServices.kAXTableRole, "AXTable")
        self.assertEqual(HIServices.kAXColumnRole, "AXColumn")
        self.assertEqual(HIServices.kAXRowRole, "AXRow")
        self.assertEqual(HIServices.kAXOutlineRole, "AXOutline")
        self.assertEqual(HIServices.kAXBrowserRole, "AXBrowser")
        self.assertEqual(HIServices.kAXScrollAreaRole, "AXScrollArea")
        self.assertEqual(HIServices.kAXScrollBarRole, "AXScrollBar")
        self.assertEqual(HIServices.kAXRadioGroupRole, "AXRadioGroup")
        self.assertEqual(HIServices.kAXListRole, "AXList")
        self.assertEqual(HIServices.kAXGroupRole, "AXGroup")
        self.assertEqual(HIServices.kAXValueIndicatorRole, "AXValueIndicator")
        self.assertEqual(HIServices.kAXComboBoxRole, "AXComboBox")
        self.assertEqual(HIServices.kAXSliderRole, "AXSlider")
        self.assertEqual(HIServices.kAXIncrementorRole, "AXIncrementor")
        self.assertEqual(HIServices.kAXBusyIndicatorRole, "AXBusyIndicator")
        self.assertEqual(HIServices.kAXProgressIndicatorRole, "AXProgressIndicator")
        self.assertEqual(HIServices.kAXRelevanceIndicatorRole, "AXRelevanceIndicator")
        self.assertEqual(HIServices.kAXToolbarRole, "AXToolbar")
        self.assertEqual(HIServices.kAXDisclosureTriangleRole, "AXDisclosureTriangle")
        self.assertEqual(HIServices.kAXTextFieldRole, "AXTextField")
        self.assertEqual(HIServices.kAXTextAreaRole, "AXTextArea")
        self.assertEqual(HIServices.kAXStaticTextRole, "AXStaticText")
        self.assertEqual(HIServices.kAXHeadingRole, "AXHeading")
        self.assertEqual(HIServices.kAXMenuBarRole, "AXMenuBar")
        self.assertEqual(HIServices.kAXMenuBarItemRole, "AXMenuBarItem")
        self.assertEqual(HIServices.kAXMenuRole, "AXMenu")
        self.assertEqual(HIServices.kAXMenuItemRole, "AXMenuItem")
        self.assertEqual(HIServices.kAXSplitGroupRole, "AXSplitGroup")
        self.assertEqual(HIServices.kAXSplitterRole, "AXSplitter")
        self.assertEqual(HIServices.kAXColorWellRole, "AXColorWell")
        self.assertEqual(HIServices.kAXTimeFieldRole, "AXTimeField")
        self.assertEqual(HIServices.kAXDateFieldRole, "AXDateField")
        self.assertEqual(HIServices.kAXHelpTagRole, "AXHelpTag")
        self.assertEqual(HIServices.kAXMatteRole, "AXMatte")
        self.assertEqual(HIServices.kAXDockItemRole, "AXDockItem")
        self.assertEqual(HIServices.kAXRulerRole, "AXRuler")
        self.assertEqual(HIServices.kAXRulerMarkerRole, "AXRulerMarker")
        self.assertEqual(HIServices.kAXGridRole, "AXGrid")
        self.assertEqual(HIServices.kAXLevelIndicatorRole, "AXLevelIndicator")
        self.assertEqual(HIServices.kAXCellRole, "AXCell")
        self.assertEqual(HIServices.kAXLayoutAreaRole, "AXLayoutArea")
        self.assertEqual(HIServices.kAXLayoutItemRole, "AXLayoutItem")
        self.assertEqual(HIServices.kAXHandleRole, "AXHandle")
        self.assertEqual(HIServices.kAXPopoverRole, "AXPopover")
        self.assertEqual(HIServices.kAXCloseButtonSubrole, "AXCloseButton")
        self.assertEqual(HIServices.kAXMinimizeButtonSubrole, "AXMinimizeButton")
        self.assertEqual(HIServices.kAXZoomButtonSubrole, "AXZoomButton")
        self.assertEqual(HIServices.kAXToolbarButtonSubrole, "AXToolbarButton")
        self.assertEqual(HIServices.kAXFullScreenButtonSubrole, "AXFullScreenButton")
        self.assertEqual(HIServices.kAXSecureTextFieldSubrole, "AXSecureTextField")
        self.assertEqual(HIServices.kAXTableRowSubrole, "AXTableRow")
        self.assertEqual(HIServices.kAXOutlineRowSubrole, "AXOutlineRow")
        self.assertEqual(HIServices.kAXUnknownSubrole, "AXUnknown")
        self.assertEqual(HIServices.kAXStandardWindowSubrole, "AXStandardWindow")
        self.assertEqual(HIServices.kAXDialogSubrole, "AXDialog")
        self.assertEqual(HIServices.kAXSystemDialogSubrole, "AXSystemDialog")
        self.assertEqual(HIServices.kAXFloatingWindowSubrole, "AXFloatingWindow")
        self.assertEqual(
            HIServices.kAXSystemFloatingWindowSubrole, "AXSystemFloatingWindow"
        )
        self.assertEqual(HIServices.kAXIncrementArrowSubrole, "AXIncrementArrow")
        self.assertEqual(HIServices.kAXDecrementArrowSubrole, "AXDecrementArrow")
        self.assertEqual(HIServices.kAXIncrementPageSubrole, "AXIncrementPage")
        self.assertEqual(HIServices.kAXDecrementPageSubrole, "AXDecrementPage")
        self.assertEqual(HIServices.kAXSortButtonSubrole, "AXSortButton")
        self.assertEqual(HIServices.kAXSearchFieldSubrole, "AXSearchField")
        self.assertEqual(HIServices.kAXTimelineSubrole, "AXTimeline")
        self.assertEqual(HIServices.kAXRatingIndicatorSubrole, "AXRatingIndicator")
        self.assertEqual(HIServices.kAXContentListSubrole, "AXContentList")
        self.assertEqual(HIServices.kAXDefinitionListSubrole, "AXDefinitionList")
        self.assertEqual(HIServices.kAXDescriptionListSubrole, "AXDescriptionList")
        self.assertEqual(HIServices.kAXToggleSubrole, "AXToggle")
        self.assertEqual(HIServices.kAXSwitchSubrole, "AXSwitch")
        self.assertEqual(
            HIServices.kAXApplicationDockItemSubrole, "AXApplicationDockItem"
        )
        self.assertEqual(HIServices.kAXDocumentDockItemSubrole, "AXDocumentDockItem")
        self.assertEqual(HIServices.kAXFolderDockItemSubrole, "AXFolderDockItem")
        self.assertEqual(
            HIServices.kAXMinimizedWindowDockItemSubrole, "AXMinimizedWindowDockItem"
        )
        self.assertEqual(HIServices.kAXURLDockItemSubrole, "AXURLDockItem")
        self.assertEqual(HIServices.kAXDockExtraDockItemSubrole, "AXDockExtraDockItem")
        self.assertEqual(HIServices.kAXTrashDockItemSubrole, "AXTrashDockItem")
        self.assertEqual(HIServices.kAXSeparatorDockItemSubrole, "AXSeparatorDockItem")
        self.assertEqual(
            HIServices.kAXProcessSwitcherListSubrole, "AXProcessSwitcherList"
        )
