mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-13 06:01:28 +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:
@@ -41,13 +41,18 @@
|
||||
|
||||
[tableView reloadData];
|
||||
|
||||
var enumerateViewsInRowsCall = 0;
|
||||
|
||||
[tableView _enumerateViewsInRows:[CPIndexSet indexSetWithIndexesInRange:CPMakeRange(0, 3)] columns:[CPIndexSet indexSetWithIndexesInRange:CPMakeRange(0, 4)] usingBlock:function(view, row, column, stop)
|
||||
{
|
||||
var tableColumn = [[tableView tableColumns] objectAtIndex:column],
|
||||
expected = [tableColumn identifier] + "_" + [tableContent objectAtIndex:row];
|
||||
|
||||
[self assertTrue:([view stringValue] == expected)];
|
||||
enumerateViewsInRowsCall++;
|
||||
}];
|
||||
|
||||
[self assert:enumerateViewsInRowsCall equals:12];
|
||||
}
|
||||
|
||||
- (int)numberOfRowsInTableView:(CPTableView)aTableView
|
||||
|
||||
Reference in New Issue
Block a user