From e1ddc698f8de1f071bf33fd50e477d4107bf1920 Mon Sep 17 00:00:00 2001 From: Hannah Troisi Date: Mon, 20 Jun 2016 10:25:58 -0700 Subject: [PATCH] Update testing variables to reflect switch to delegate --- AsyncDisplayKitTests/ASTableViewTests.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/AsyncDisplayKitTests/ASTableViewTests.m b/AsyncDisplayKitTests/ASTableViewTests.m index b135dc1d55..307d0fac63 100644 --- a/AsyncDisplayKitTests/ASTableViewTests.m +++ b/AsyncDisplayKitTests/ASTableViewTests.m @@ -139,10 +139,10 @@ - (ASCellNodeBlock)tableView:(ASTableView *)tableView nodeBlockForRowAtIndexPath @end -@interface ASTableViewFilledDataSourceWithRowSize : ASTableViewFilledDataSource +@interface ASTableViewFilledDelegate : NSObject @end -@implementation ASTableViewFilledDataSourceWithRowSize +@implementation ASTableViewFilledDelegate - (ASSizeRange)tableView:(ASTableView *)tableView constrainedSizeForRowAtIndexPath:(NSIndexPath *)indexPath { @@ -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];