mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 09:48:21 +00:00
Gated out test that is unsupported on tvOS
This commit is contained in:
parent
5b15894647
commit
e37b4e39d8
1 changed files with 3 additions and 0 deletions
|
|
@ -56,13 +56,16 @@
|
|||
XCTAssertNil(sectionController.viewController);
|
||||
}
|
||||
|
||||
#if !TARGET_OS_TV
|
||||
- (void)test_whenCallingContextMenuConfiguration_thatDefaultReturnsNil {
|
||||
// The default implementation of contextMenuConfigurationForItemAtIndex:point: returns nil
|
||||
// Context menus are not available on tvOS
|
||||
IGListSectionController *sectionController = [[IGListSectionController alloc] init];
|
||||
if (@available(iOS 13.0, *)) {
|
||||
UIContextMenuConfiguration *config = [sectionController contextMenuConfigurationForItemAtIndex:0 point:CGPointZero];
|
||||
XCTAssertNil(config);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
|
|
|||
Loading…
Reference in a new issue