1from PyObjCTools.TestSupport import * 2from AppKit import * 3 4class TestNSAccessibilityHelper (NSObject): 5 def accessibilityIsAttributeSettable_(self, arg): 6 return 1 7 8 def accessibilityIsIgnored(self): 9 return 1 10 11 def accessibilityHitTest_(self, pt): 12 pass 13 14 def accessibilitySetOverrideValue_forAttribute_(self, v, a): 15 return 1 16 17class TestNSAccessibility (TestCase): 18 def testInformal(self): 19 self.assertResultIsBOOL(TestNSAccessibilityHelper.accessibilityIsAttributeSettable_) 20 self.assertResultIsBOOL(TestNSAccessibilityHelper.accessibilityIsIgnored) 21 self.assertArgHasType(TestNSAccessibilityHelper.accessibilityHitTest_, 0, NSPoint.__typestr__) 22 self.assertResultIsBOOL(TestNSAccessibilityHelper.accessibilitySetOverrideValue_forAttribute_) 23 24 def testFunction(self): 25 v = NSAccessibilityRoleDescription(NSAccessibilityButtonRole, None) 26 self.assertIsInstance(v, unicode) 27 28 b = NSButton.alloc().init() 29 v = NSAccessibilityRoleDescriptionForUIElement(b) 30 self.assertIsInstance(v, unicode) 31 32 v = NSAccessibilityActionDescription(NSAccessibilityIncrementAction) 33 self.assertIsInstance(v, unicode) 34 35 self.assertRaises(objc.error, NSAccessibilityRaiseBadArgumentException, b, "attribute", "value") 36 37 38 v = NSAccessibilityUnignoredAncestor(b) 39 self.assertIs(v, None) 40 v = NSAccessibilityUnignoredDescendant(b) 41 self.assertIsInstance(b, NSView) 42 43 v = NSAccessibilityUnignoredChildren([b]) 44 self.assertIsInstance(v, NSArray) 45 46 v = NSAccessibilityUnignoredChildrenForOnlyChild(b) 47 self.assertIsInstance(v, NSArray) 48 49 v = NSAccessibilityPostNotification(b, "hello") 50 self.assertIs(v, None) 51 def testConstants(self): 52 self.assertIsInstance(NSAccessibilityErrorCodeExceptionInfo, unicode) 53 self.assertIsInstance(NSAccessibilityRoleAttribute, unicode) 54 self.assertIsInstance(NSAccessibilityRoleDescriptionAttribute, unicode) 55 self.assertIsInstance(NSAccessibilitySubroleAttribute, unicode) 56 self.assertIsInstance(NSAccessibilityHelpAttribute, unicode) 57 self.assertIsInstance(NSAccessibilityValueAttribute, unicode) 58 self.assertIsInstance(NSAccessibilityMinValueAttribute, unicode) 59 self.assertIsInstance(NSAccessibilityMaxValueAttribute, unicode) 60 self.assertIsInstance(NSAccessibilityEnabledAttribute, unicode) 61 self.assertIsInstance(NSAccessibilityFocusedAttribute, unicode) 62 self.assertIsInstance(NSAccessibilityParentAttribute, unicode) 63 self.assertIsInstance(NSAccessibilityChildrenAttribute, unicode) 64 self.assertIsInstance(NSAccessibilityWindowAttribute, unicode) 65 self.assertIsInstance(NSAccessibilityTopLevelUIElementAttribute, unicode) 66 self.assertIsInstance(NSAccessibilitySelectedChildrenAttribute, unicode) 67 self.assertIsInstance(NSAccessibilityVisibleChildrenAttribute, unicode) 68 self.assertIsInstance(NSAccessibilityPositionAttribute, unicode) 69 self.assertIsInstance(NSAccessibilitySizeAttribute, unicode) 70 self.assertIsInstance(NSAccessibilityContentsAttribute, unicode) 71 self.assertIsInstance(NSAccessibilityTitleAttribute, unicode) 72 self.assertIsInstance(NSAccessibilityDescriptionAttribute, unicode) 73 self.assertIsInstance(NSAccessibilityShownMenuAttribute, unicode) 74 self.assertIsInstance(NSAccessibilityValueDescriptionAttribute, unicode) 75 self.assertIsInstance(NSAccessibilityPreviousContentsAttribute, unicode) 76 self.assertIsInstance(NSAccessibilityNextContentsAttribute, unicode) 77 self.assertIsInstance(NSAccessibilityHeaderAttribute, unicode) 78 self.assertIsInstance(NSAccessibilityEditedAttribute, unicode) 79 self.assertIsInstance(NSAccessibilityTabsAttribute, unicode) 80 self.assertIsInstance(NSAccessibilityHorizontalScrollBarAttribute, unicode) 81 self.assertIsInstance(NSAccessibilityVerticalScrollBarAttribute, unicode) 82 self.assertIsInstance(NSAccessibilityOverflowButtonAttribute, unicode) 83 self.assertIsInstance(NSAccessibilityIncrementButtonAttribute, unicode) 84 self.assertIsInstance(NSAccessibilityDecrementButtonAttribute, unicode) 85 self.assertIsInstance(NSAccessibilityFilenameAttribute, unicode) 86 self.assertIsInstance(NSAccessibilityExpandedAttribute, unicode) 87 self.assertIsInstance(NSAccessibilitySelectedAttribute, unicode) 88 self.assertIsInstance(NSAccessibilitySplittersAttribute, unicode) 89 self.assertIsInstance(NSAccessibilityDocumentAttribute, unicode) 90 self.assertIsInstance(NSAccessibilityURLAttribute, unicode) 91 self.assertIsInstance(NSAccessibilityIndexAttribute, unicode) 92 self.assertIsInstance(NSAccessibilityRowCountAttribute, unicode) 93 self.assertIsInstance(NSAccessibilityColumnCountAttribute, unicode) 94 self.assertIsInstance(NSAccessibilityOrderedByRowAttribute, unicode) 95 self.assertIsInstance(NSAccessibilityTitleUIElementAttribute, unicode) 96 self.assertIsInstance(NSAccessibilityServesAsTitleForUIElementsAttribute, unicode) 97 self.assertIsInstance(NSAccessibilityLinkedUIElementsAttribute, unicode) 98 self.assertIsInstance(NSAccessibilitySelectedTextAttribute, unicode) 99 self.assertIsInstance(NSAccessibilitySelectedTextRangeAttribute, unicode) 100 self.assertIsInstance(NSAccessibilityNumberOfCharactersAttribute, unicode) 101 self.assertIsInstance(NSAccessibilityVisibleCharacterRangeAttribute, unicode) 102 self.assertIsInstance(NSAccessibilitySharedTextUIElementsAttribute, unicode) 103 self.assertIsInstance(NSAccessibilitySharedCharacterRangeAttribute, unicode) 104 self.assertIsInstance(NSAccessibilityInsertionPointLineNumberAttribute, unicode) 105 self.assertIsInstance(NSAccessibilitySelectedTextRangesAttribute, unicode) 106 self.assertIsInstance(NSAccessibilityLineForIndexParameterizedAttribute, unicode) 107 self.assertIsInstance(NSAccessibilityRangeForLineParameterizedAttribute, unicode) 108 self.assertIsInstance(NSAccessibilityStringForRangeParameterizedAttribute, unicode) 109 self.assertIsInstance(NSAccessibilityRangeForPositionParameterizedAttribute, unicode) 110 self.assertIsInstance(NSAccessibilityRangeForIndexParameterizedAttribute, unicode) 111 self.assertIsInstance(NSAccessibilityBoundsForRangeParameterizedAttribute, unicode) 112 self.assertIsInstance(NSAccessibilityRTFForRangeParameterizedAttribute, unicode) 113 self.assertIsInstance(NSAccessibilityStyleRangeForIndexParameterizedAttribute, unicode) 114 self.assertIsInstance(NSAccessibilityAttributedStringForRangeParameterizedAttribute, unicode) 115 self.assertIsInstance(NSAccessibilityFontTextAttribute, unicode) 116 self.assertIsInstance(NSAccessibilityForegroundColorTextAttribute, unicode) 117 self.assertIsInstance(NSAccessibilityBackgroundColorTextAttribute, unicode) 118 self.assertIsInstance(NSAccessibilityUnderlineColorTextAttribute, unicode) 119 self.assertIsInstance(NSAccessibilityStrikethroughColorTextAttribute, unicode) 120 self.assertIsInstance(NSAccessibilityUnderlineTextAttribute, unicode) 121 self.assertIsInstance(NSAccessibilitySuperscriptTextAttribute, unicode) 122 self.assertIsInstance(NSAccessibilityStrikethroughTextAttribute, unicode) 123 self.assertIsInstance(NSAccessibilityShadowTextAttribute, unicode) 124 self.assertIsInstance(NSAccessibilityAttachmentTextAttribute, unicode) 125 self.assertIsInstance(NSAccessibilityLinkTextAttribute, unicode) 126 self.assertIsInstance(NSAccessibilityMisspelledTextAttribute, unicode) 127 self.assertIsInstance(NSAccessibilityFontNameKey, unicode) 128 self.assertIsInstance(NSAccessibilityFontFamilyKey, unicode) 129 self.assertIsInstance(NSAccessibilityVisibleNameKey, unicode) 130 self.assertIsInstance(NSAccessibilityFontSizeKey, unicode) 131 self.assertIsInstance(NSAccessibilityMainAttribute, unicode) 132 self.assertIsInstance(NSAccessibilityMinimizedAttribute, unicode) 133 self.assertIsInstance(NSAccessibilityCloseButtonAttribute, unicode) 134 self.assertIsInstance(NSAccessibilityZoomButtonAttribute, unicode) 135 self.assertIsInstance(NSAccessibilityMinimizeButtonAttribute, unicode) 136 self.assertIsInstance(NSAccessibilityToolbarButtonAttribute, unicode) 137 self.assertIsInstance(NSAccessibilityProxyAttribute, unicode) 138 self.assertIsInstance(NSAccessibilityGrowAreaAttribute, unicode) 139 self.assertIsInstance(NSAccessibilityModalAttribute, unicode) 140 self.assertIsInstance(NSAccessibilityDefaultButtonAttribute, unicode) 141 self.assertIsInstance(NSAccessibilityCancelButtonAttribute, unicode) 142 self.assertIsInstance(NSAccessibilityMenuBarAttribute, unicode) 143 self.assertIsInstance(NSAccessibilityWindowsAttribute, unicode) 144 self.assertIsInstance(NSAccessibilityFrontmostAttribute, unicode) 145 self.assertIsInstance(NSAccessibilityHiddenAttribute, unicode) 146 self.assertIsInstance(NSAccessibilityMainWindowAttribute, unicode) 147 self.assertIsInstance(NSAccessibilityFocusedWindowAttribute, unicode) 148 self.assertIsInstance(NSAccessibilityFocusedUIElementAttribute, unicode) 149 self.assertIsInstance(NSAccessibilityOrientationAttribute, unicode) 150 self.assertIsInstance(NSAccessibilityVerticalOrientationValue, unicode) 151 self.assertIsInstance(NSAccessibilityHorizontalOrientationValue, unicode) 152 self.assertIsInstance(NSAccessibilityColumnTitlesAttribute, unicode) 153 self.assertIsInstance(NSAccessibilitySearchButtonAttribute, unicode) 154 self.assertIsInstance(NSAccessibilitySearchMenuAttribute, unicode) 155 self.assertIsInstance(NSAccessibilityClearButtonAttribute, unicode) 156 self.assertIsInstance(NSAccessibilityRowsAttribute, unicode) 157 self.assertIsInstance(NSAccessibilityVisibleRowsAttribute, unicode) 158 self.assertIsInstance(NSAccessibilitySelectedRowsAttribute, unicode) 159 self.assertIsInstance(NSAccessibilityColumnsAttribute, unicode) 160 self.assertIsInstance(NSAccessibilityVisibleColumnsAttribute, unicode) 161 self.assertIsInstance(NSAccessibilitySelectedColumnsAttribute, unicode) 162 self.assertIsInstance(NSAccessibilitySortDirectionAttribute, unicode) 163 self.assertIsInstance(NSAccessibilityAscendingSortDirectionValue, unicode) 164 self.assertIsInstance(NSAccessibilityDescendingSortDirectionValue, unicode) 165 self.assertIsInstance(NSAccessibilityUnknownSortDirectionValue, unicode) 166 self.assertIsInstance(NSAccessibilityDisclosingAttribute, unicode) 167 self.assertIsInstance(NSAccessibilityDisclosedRowsAttribute, unicode) 168 self.assertIsInstance(NSAccessibilityDisclosedByRowAttribute, unicode) 169 self.assertIsInstance(NSAccessibilityDisclosureLevelAttribute, unicode) 170 self.assertIsInstance(NSAccessibilityAllowedValuesAttribute, unicode) 171 self.assertIsInstance(NSAccessibilityLabelUIElementsAttribute, unicode) 172 self.assertIsInstance(NSAccessibilityLabelValueAttribute, unicode) 173 self.assertIsInstance(NSAccessibilityMatteHoleAttribute, unicode) 174 self.assertIsInstance(NSAccessibilityMatteContentUIElementAttribute, unicode) 175 self.assertIsInstance(NSAccessibilityMarkerUIElementsAttribute, unicode) 176 self.assertIsInstance(NSAccessibilityMarkerValuesAttribute, unicode) 177 self.assertIsInstance(NSAccessibilityMarkerGroupUIElementAttribute, unicode) 178 self.assertIsInstance(NSAccessibilityUnitsAttribute, unicode) 179 self.assertIsInstance(NSAccessibilityUnitDescriptionAttribute, unicode) 180 self.assertIsInstance(NSAccessibilityMarkerTypeAttribute, unicode) 181 self.assertIsInstance(NSAccessibilityMarkerTypeDescriptionAttribute, unicode) 182 self.assertIsInstance(NSAccessibilityLeftTabStopMarkerTypeValue, unicode) 183 self.assertIsInstance(NSAccessibilityRightTabStopMarkerTypeValue, unicode) 184 self.assertIsInstance(NSAccessibilityCenterTabStopMarkerTypeValue, unicode) 185 self.assertIsInstance(NSAccessibilityDecimalTabStopMarkerTypeValue, unicode) 186 self.assertIsInstance(NSAccessibilityHeadIndentMarkerTypeValue, unicode) 187 self.assertIsInstance(NSAccessibilityTailIndentMarkerTypeValue, unicode) 188 self.assertIsInstance(NSAccessibilityFirstLineIndentMarkerTypeValue, unicode) 189 self.assertIsInstance(NSAccessibilityUnknownMarkerTypeValue, unicode) 190 self.assertIsInstance(NSAccessibilityInchesUnitValue, unicode) 191 self.assertIsInstance(NSAccessibilityCentimetersUnitValue, unicode) 192 self.assertIsInstance(NSAccessibilityPointsUnitValue, unicode) 193 self.assertIsInstance(NSAccessibilityPicasUnitValue, unicode) 194 self.assertIsInstance(NSAccessibilityUnknownUnitValue, unicode) 195 self.assertIsInstance(NSAccessibilityPressAction, unicode) 196 self.assertIsInstance(NSAccessibilityIncrementAction, unicode) 197 self.assertIsInstance(NSAccessibilityDecrementAction, unicode) 198 self.assertIsInstance(NSAccessibilityConfirmAction, unicode) 199 self.assertIsInstance(NSAccessibilityPickAction, unicode) 200 self.assertIsInstance(NSAccessibilityCancelAction, unicode) 201 self.assertIsInstance(NSAccessibilityRaiseAction, unicode) 202 self.assertIsInstance(NSAccessibilityShowMenuAction, unicode) 203 self.assertIsInstance(NSAccessibilityDeleteAction, unicode) 204 self.assertIsInstance(NSAccessibilityMainWindowChangedNotification, unicode) 205 self.assertIsInstance(NSAccessibilityFocusedWindowChangedNotification, unicode) 206 self.assertIsInstance(NSAccessibilityFocusedUIElementChangedNotification, unicode) 207 self.assertIsInstance(NSAccessibilityApplicationActivatedNotification, unicode) 208 self.assertIsInstance(NSAccessibilityApplicationDeactivatedNotification, unicode) 209 self.assertIsInstance(NSAccessibilityApplicationHiddenNotification, unicode) 210 self.assertIsInstance(NSAccessibilityApplicationShownNotification, unicode) 211 self.assertIsInstance(NSAccessibilityWindowCreatedNotification, unicode) 212 self.assertIsInstance(NSAccessibilityWindowMovedNotification, unicode) 213 self.assertIsInstance(NSAccessibilityWindowResizedNotification, unicode) 214 self.assertIsInstance(NSAccessibilityWindowMiniaturizedNotification, unicode) 215 self.assertIsInstance(NSAccessibilityWindowDeminiaturizedNotification, unicode) 216 self.assertIsInstance(NSAccessibilityDrawerCreatedNotification, unicode) 217 self.assertIsInstance(NSAccessibilitySheetCreatedNotification, unicode) 218 self.assertIsInstance(NSAccessibilityUIElementDestroyedNotification, unicode) 219 self.assertIsInstance(NSAccessibilityValueChangedNotification, unicode) 220 self.assertIsInstance(NSAccessibilityTitleChangedNotification, unicode) 221 self.assertIsInstance(NSAccessibilityResizedNotification, unicode) 222 self.assertIsInstance(NSAccessibilityMovedNotification, unicode) 223 self.assertIsInstance(NSAccessibilityCreatedNotification, unicode) 224 self.assertIsInstance(NSAccessibilityHelpTagCreatedNotification, unicode) 225 self.assertIsInstance(NSAccessibilitySelectedTextChangedNotification, unicode) 226 self.assertIsInstance(NSAccessibilityRowCountChangedNotification, unicode) 227 self.assertIsInstance(NSAccessibilitySelectedChildrenChangedNotification, unicode) 228 self.assertIsInstance(NSAccessibilitySelectedRowsChangedNotification, unicode) 229 self.assertIsInstance(NSAccessibilitySelectedColumnsChangedNotification, unicode) 230 self.assertIsInstance(NSAccessibilityUnknownRole, unicode) 231 self.assertIsInstance(NSAccessibilityButtonRole, unicode) 232 self.assertIsInstance(NSAccessibilityRadioButtonRole, unicode) 233 self.assertIsInstance(NSAccessibilityCheckBoxRole, unicode) 234 self.assertIsInstance(NSAccessibilitySliderRole, unicode) 235 self.assertIsInstance(NSAccessibilityTabGroupRole, unicode) 236 self.assertIsInstance(NSAccessibilityTextFieldRole, unicode) 237 self.assertIsInstance(NSAccessibilityStaticTextRole, unicode) 238 self.assertIsInstance(NSAccessibilityTextAreaRole, unicode) 239 self.assertIsInstance(NSAccessibilityScrollAreaRole, unicode) 240 self.assertIsInstance(NSAccessibilityPopUpButtonRole, unicode) 241 self.assertIsInstance(NSAccessibilityMenuButtonRole, unicode) 242 self.assertIsInstance(NSAccessibilityTableRole, unicode) 243 self.assertIsInstance(NSAccessibilityApplicationRole, unicode) 244 self.assertIsInstance(NSAccessibilityGroupRole, unicode) 245 self.assertIsInstance(NSAccessibilityRadioGroupRole, unicode) 246 self.assertIsInstance(NSAccessibilityListRole, unicode) 247 self.assertIsInstance(NSAccessibilityScrollBarRole, unicode) 248 self.assertIsInstance(NSAccessibilityValueIndicatorRole, unicode) 249 self.assertIsInstance(NSAccessibilityImageRole, unicode) 250 self.assertIsInstance(NSAccessibilityMenuBarRole, unicode) 251 self.assertIsInstance(NSAccessibilityMenuRole, unicode) 252 self.assertIsInstance(NSAccessibilityMenuItemRole, unicode) 253 self.assertIsInstance(NSAccessibilityColumnRole, unicode) 254 self.assertIsInstance(NSAccessibilityRowRole, unicode) 255 self.assertIsInstance(NSAccessibilityToolbarRole, unicode) 256 self.assertIsInstance(NSAccessibilityBusyIndicatorRole, unicode) 257 self.assertIsInstance(NSAccessibilityProgressIndicatorRole, unicode) 258 self.assertIsInstance(NSAccessibilityWindowRole, unicode) 259 self.assertIsInstance(NSAccessibilityDrawerRole, unicode) 260 self.assertIsInstance(NSAccessibilitySystemWideRole, unicode) 261 self.assertIsInstance(NSAccessibilityOutlineRole, unicode) 262 self.assertIsInstance(NSAccessibilityIncrementorRole, unicode) 263 self.assertIsInstance(NSAccessibilityBrowserRole, unicode) 264 self.assertIsInstance(NSAccessibilityComboBoxRole, unicode) 265 self.assertIsInstance(NSAccessibilitySplitGroupRole, unicode) 266 self.assertIsInstance(NSAccessibilitySplitterRole, unicode) 267 self.assertIsInstance(NSAccessibilityColorWellRole, unicode) 268 self.assertIsInstance(NSAccessibilityGrowAreaRole, unicode) 269 self.assertIsInstance(NSAccessibilitySheetRole, unicode) 270 self.assertIsInstance(NSAccessibilityHelpTagRole, unicode) 271 self.assertIsInstance(NSAccessibilityMatteRole, unicode) 272 self.assertIsInstance(NSAccessibilityRulerRole, unicode) 273 self.assertIsInstance(NSAccessibilityRulerMarkerRole, unicode) 274 self.assertIsInstance(NSAccessibilitySortButtonRole, unicode) 275 self.assertIsInstance(NSAccessibilityLinkRole, unicode) 276 self.assertIsInstance(NSAccessibilityDisclosureTriangleRole, unicode) 277 self.assertIsInstance(NSAccessibilityGridRole, unicode) 278 self.assertIsInstance(NSAccessibilityUnknownSubrole, unicode) 279 self.assertIsInstance(NSAccessibilityCloseButtonSubrole, unicode) 280 self.assertIsInstance(NSAccessibilityZoomButtonSubrole, unicode) 281 self.assertIsInstance(NSAccessibilityMinimizeButtonSubrole, unicode) 282 self.assertIsInstance(NSAccessibilityToolbarButtonSubrole, unicode) 283 self.assertIsInstance(NSAccessibilityTableRowSubrole, unicode) 284 self.assertIsInstance(NSAccessibilityOutlineRowSubrole, unicode) 285 self.assertIsInstance(NSAccessibilitySecureTextFieldSubrole, unicode) 286 self.assertIsInstance(NSAccessibilityStandardWindowSubrole, unicode) 287 self.assertIsInstance(NSAccessibilityDialogSubrole, unicode) 288 self.assertIsInstance(NSAccessibilitySystemDialogSubrole, unicode) 289 self.assertIsInstance(NSAccessibilityFloatingWindowSubrole, unicode) 290 self.assertIsInstance(NSAccessibilitySystemFloatingWindowSubrole, unicode) 291 self.assertIsInstance(NSAccessibilityIncrementArrowSubrole, unicode) 292 self.assertIsInstance(NSAccessibilityDecrementArrowSubrole, unicode) 293 self.assertIsInstance(NSAccessibilityIncrementPageSubrole, unicode) 294 self.assertIsInstance(NSAccessibilityDecrementPageSubrole, unicode) 295 self.assertIsInstance(NSAccessibilitySearchFieldSubrole, unicode) 296 self.assertIsInstance(NSAccessibilityTextAttachmentSubrole, unicode) 297 self.assertIsInstance(NSAccessibilityTextLinkSubrole, unicode) 298 self.assertIsInstance(NSAccessibilityTimelineSubrole, unicode) 299 self.assertIsInstance(NSAccessibilityRelevanceIndicatorRole, unicode) 300 301 @min_os_level('10.6') 302 def testConstants10_6(self): 303 self.assertIsInstance(NSAccessibilityWarningValueAttribute, unicode) 304 self.assertIsInstance(NSAccessibilityCriticalValueAttribute, unicode) 305 self.assertIsInstance(NSAccessibilityPlaceholderValueAttribute, unicode) 306 self.assertIsInstance(NSAccessibilityUnknownOrientationValue, unicode) 307 self.assertIsInstance(NSAccessibilitySelectedCellsAttribute, unicode) 308 self.assertIsInstance(NSAccessibilityVisibleCellsAttribute, unicode) 309 self.assertIsInstance(NSAccessibilityRowHeaderUIElementsAttribute, unicode) 310 self.assertIsInstance(NSAccessibilityColumnHeaderUIElementsAttribute, unicode) 311 self.assertIsInstance(NSAccessibilityCellForColumnAndRowParameterizedAttribute, unicode) 312 self.assertIsInstance(NSAccessibilityRowIndexRangeAttribute, unicode) 313 self.assertIsInstance(NSAccessibilityColumnIndexRangeAttribute, unicode) 314 self.assertIsInstance(NSAccessibilityHorizontalUnitsAttribute, unicode) 315 self.assertIsInstance(NSAccessibilityVerticalUnitsAttribute, unicode) 316 self.assertIsInstance(NSAccessibilityHorizontalUnitDescriptionAttribute, unicode) 317 self.assertIsInstance(NSAccessibilityVerticalUnitDescriptionAttribute, unicode) 318 self.assertIsInstance(NSAccessibilityLayoutPointForScreenPointParameterizedAttribute, unicode) 319 self.assertIsInstance(NSAccessibilityLayoutSizeForScreenSizeParameterizedAttribute, unicode) 320 self.assertIsInstance(NSAccessibilityScreenPointForLayoutPointParameterizedAttribute, unicode) 321 self.assertIsInstance(NSAccessibilityScreenSizeForLayoutSizeParameterizedAttribute, unicode) 322 self.assertIsInstance(NSAccessibilityHandlesAttribute, unicode) 323 self.assertIsInstance(NSAccessibilityRowExpandedNotification, unicode) 324 self.assertIsInstance(NSAccessibilityRowCollapsedNotification, unicode) 325 self.assertIsInstance(NSAccessibilitySelectedCellsChangedNotification, unicode) 326 self.assertIsInstance(NSAccessibilityUnitsChangedNotification, unicode) 327 self.assertIsInstance(NSAccessibilitySelectedChildrenMovedNotification, unicode) 328 self.assertIsInstance(NSAccessibilitySortButtonRole, unicode) 329 self.assertIsInstance(NSAccessibilityLevelIndicatorRole, unicode) 330 self.assertIsInstance(NSAccessibilityCellRole, unicode) 331 self.assertIsInstance(NSAccessibilityLayoutAreaRole, unicode) 332 self.assertIsInstance(NSAccessibilityLayoutItemRole, unicode) 333 self.assertIsInstance(NSAccessibilityHandleRole, unicode) 334 self.assertIsInstance(NSAccessibilitySortButtonSubrole, unicode) 335 self.assertIsInstance(NSAccessibilityRatingIndicatorSubrole, unicode) 336 self.assertIsInstance(NSAccessibilityContentListSubrole, unicode) 337 self.assertIsInstance(NSAccessibilityDefinitionListSubrole, unicode) 338 339if __name__ == "__main__": 340 main() 341