mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 18:53:50 +00:00
Fixed: removed unused test case
This commit is contained in:
1 parent
b9c0c89a24
commit
e822966464
1 file changed
-30
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user