mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 10:20:59 +00:00
Fixed: the developer need to perform the run loop to get some informations in CPTableView. Now, the run loop is performed by the tableview
This commit is contained in:
1 parent
59afb012b6
commit
3b2635014c
4 files changed
+64
-19
No files matched your search
@@ -40,19 +40,21 @@
|
||||
[self assertTrue:([[tableView tableColumns] count] == 4)];
|
||||
|
||||
[tableView removeTableColumn:[[tableView tableColumns] firstObject]];
|
||||
[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];
|
||||
[self assertTrue:([[tableView tableColumns] count] == 3)];
|
||||
|
||||
[tableView removeTableColumn:[[tableView tableColumns] firstObject]];
|
||||
[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];
|
||||
[self assertTrue:([[tableView tableColumns] count] == 2)];
|
||||
|
||||
var enumerateViewsInRowsCall = 0;
|
||||
|
||||
[tableView enumerateAvailableViewsUsingBlock:function(view, row, column, stop)
|
||||
{
|
||||
var tableColumn = [[tableView tableColumns] objectAtIndex:column];
|
||||
[self assert:("COLUMN_" + [tableColumn identifier] + "ROW_" + row) equals:[view objectValue]];
|
||||
|
||||
enumerateViewsInRowsCall++;
|
||||
}];
|
||||
|
||||
[self assert:enumerateViewsInRowsCall equals:30];
|
||||
}
|
||||
|
||||
- (int)numberOfRowsInTableView:(CPTableView)aTableView
|
||||
|
||||
Reference in new issue
Block a user