Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Update testing variables to reflect switch to delegate
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahmbanana committed Jun 23, 2016
1 parent 14fdafd commit 587ee7e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions AsyncDisplayKitTests/ASTableViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ - (ASCellNodeBlock)tableView:(ASTableView *)tableView nodeBlockForRowAtIndexPath

@end

@interface ASTableViewFilledDataSourceWithRowSize : ASTableViewFilledDataSource
@interface ASTableViewFilledDelegate : NSObject <ASTableViewDelegate>
@end

@implementation ASTableViewFilledDataSourceWithRowSize
@implementation ASTableViewFilledDelegate

- (ASSizeRange)tableView:(ASTableView *)tableView constrainedSizeForRowAtIndexPath:(NSIndexPath *)indexPath
{
Expand All @@ -165,9 +165,10 @@ - (void)testConstrainedSizeForRowAtIndexPath
ASTestTableView *tableView = [[ASTestTableView alloc] __initWithFrame:CGRectMake(0, 0, 100, 400)
style:UITableViewStylePlain];

ASTableViewFilledDataSourceWithRowSize *dataSource = [ASTableViewFilledDataSourceWithRowSize new];
ASTableViewFilledDelegate *delegate = [ASTableViewFilledDelegate new];
ASTableViewFilledDataSource *dataSource = [ASTableViewFilledDataSource new];

tableView.asyncDelegate = dataSource;
tableView.asyncDelegate = delegate;
tableView.asyncDataSource = dataSource;

[tableView reloadDataImmediately];
Expand Down

0 comments on commit 587ee7e

Please sign in to comment.