Fixed: removed unused test case

This commit is contained in:
Alexandre Wilhelm committed 2013-12-10 11:00:47 -08:00
1 parent b9c0c89a24
commit e822966464
1 file changed
-30
-30
View File
@@ -303,18 +303,6 @@
[self assertTrue:[table bounds].size.width >= 200];
}
- (void)testProtocolTableViewDataSource
{
var table = [[CPTableView alloc] initWithFrame:CGRectMake(0, 0, 400, 400)],
dataSource = [TestDataSource new],
falseObjectValueDataSource = [TestFalseObjectValueDataSource new],
falseNumberOfRowsDataSource = [TestFalseNumberRowsDataSource new];
[self assert:true equals:[dataSource conformsToProtocol:@protocol(CPTableViewDataSource)]];
[self assert:false equals:[falseObjectValueDataSource conformsToProtocol:@protocol(CPTableViewDataSource)]];
[self assert:false equals:[falseNumberOfRowsDataSource conformsToProtocol:@protocol(CPTableViewDataSource)]];
}
@end
@implementation FirstResponderConfigurableTableView : CPTableView
@@ -329,24 +317,6 @@
@end
@implementation TestFalseObjectValueDataSource : CPObject
- (int)numberOfRowsInTableView:(CPTableView)aTableView
{
return 0;
}
@end
@implementation TestFalseNumberRowsDataSource : CPObject
- (id)tableView:(CPTableView)aTableView objectValueForTableColumn:(CPTableColumn)aColumn row:(CPInteger)aRow
{
return nil;
}
@end
@implementation TestDataSource : CPObject <CPTableViewDataSource>
{
CPArray tableEntries @accessors;