in commands/FBXCTestCommands.py [0:0]
def detail_summary(self):
"""
Returns XCElementSnapshot detail summary
:return: XCElementSnapshot detail summary
:rtype: str
"""
texts = list()
texts.append("Pointer: {:#x}".format(int(self.element_value, 16)))
texts.append("Type: {}".format(self.type_summary))
texts.append("Depth: {}".format(self.depth_value))
texts.append(
"Traits: {} ({:#x})".format(self.traits_summary, self.traits_value)
)
texts.append("Frame: {}".format(self.frame_summary))
texts.append("Visible frame: {}".format(self.visible_frame_summary))
texts.append("Identifier: '{}'".format(self.identifier_value))
texts.append("Label: '{}'".format(self.label_value))
texts.append("Title: '{}'".format(self.title_value))
texts.append("Value: '{}'".format(self.value_value))
texts.append("Placeholder: '{}'".format(self.placeholder_value))
if self.language != lldb.eLanguageTypeSwift:
# They doesn't work on Swift :(
texts.append("Hit point: {}".format(self.hit_point_value))
texts.append(
"Hit point for scrolling: {}".format(self.hit_point_for_scrolling_value)
)
texts.append("Enabled: {}".format(self.enabled_value))
texts.append("Selected: {}".format(self.selected_value))
texts.append("Main Window: {}".format(self.is_main_window_value))
texts.append("Keyboard focus: {}".format(self.keyboard_focus_value))
texts.append("Focus: {}".format(self.focus_value))
texts.append("Generation: {}".format(self.generation_value))
texts.append(
"Horizontal size class: {}".format(self.horizontal_size_class_summary)
)
texts.append("Vertical size class: {}".format(self.vertical_size_class_summary))
texts.append("TouchBar element: {}".format(self.is_touch_bar_element_value))
texts.append(
"TouchBar top level element: {}".format(
self.is_top_level_touch_bar_element_value
)
)
texts.append(
"Unique Objective-C: {}".format(
self.uniquely_identifying_objective_c_code_value
)
)
texts.append(
"Unique Swift: {}".format(self.uniquely_identifying_swift_code_value)
)
texts.append("Suggested hit points: {}".format(self.suggested_hit_points_value))
return "\n".join(texts)