Improve TestTableColumn manual test to expose a bug when resizing after a column remove

This commit is contained in:
cacaodev committed 2014-09-25 23:12:25 +02:00
1 parent 1a414ac69c
commit ae6d379cce
5 files changed
+283 -2189

No files matched your search

+9 -2
View File
@@ -40,12 +40,19 @@
[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)];
[tableView enumerateAvailableViewsUsingBlock:function(view, row, column, stop)
{
var tableColumn = [[tableView tableColumns] objectAtIndex:column];
[self assert:("COLUMN_" + [tableColumn identifier] + "ROW_" + row) equals:[view objectValue]];
}];
}
- (int)numberOfRowsInTableView:(CPTableView)aTableView