mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-23 19:31:21 +08:00
[Tests] Add failing tests for weird conformance issue
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
#import "ASDisplayNode+Subclasses.h"
|
||||
#import "ASChangeSetDataController.h"
|
||||
#import "ASCellNode.h"
|
||||
#import "ASTableNode.h"
|
||||
|
||||
#define NumberOfSections 10
|
||||
#define NumberOfRowsPerSection 20
|
||||
@@ -518,4 +519,14 @@
|
||||
}];
|
||||
}
|
||||
|
||||
/**
|
||||
* This may seem silly, but we had issues where the runtime sometimes wouldn't correctly report
|
||||
* conformances declared on categories.
|
||||
*/
|
||||
- (void)testThatTableNodeConformsToExpectedProtocols
|
||||
{
|
||||
ASTableNode *node = [[ASTableNode alloc] initWithStyle:UITableViewStylePlain];
|
||||
XCTAssert([node conformsToProtocol:@protocol(ASRangeControllerUpdateRangeProtocol)]);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user