mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-14 14:41:28 +00:00
Additional testing for outline view archiving.
This commit is contained in:
@@ -162,13 +162,17 @@
|
||||
}
|
||||
|
||||
/*!
|
||||
Test that the outline view is properly careful about not encoding its
|
||||
non-encodable delegate and data source.
|
||||
Test that the outline view archives properly.
|
||||
*/
|
||||
- (void)testCoding
|
||||
{
|
||||
// This should simply not crash.
|
||||
var decoded = [CPKeyedUnarchiver unarchiveObjectWithData:[CPKeyedArchiver archivedDataWithRootObject:outlineView]];
|
||||
|
||||
outlineView = decoded;
|
||||
// Expansion state does not archive.
|
||||
[outlineView expandItem:nil expandChildren:YES];
|
||||
// While not exhaustive, if this test works nothing is majorly broken with the unarchived outline view.
|
||||
[self testCollapse];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user