mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
20 lines
629 B
Plaintext
20 lines
629 B
Plaintext
@import <AppKit/CPTokenField.j>
|
|
|
|
@implementation CPTokenFieldTest : OJTestCase
|
|
{
|
|
}
|
|
|
|
- (void)testArchiving
|
|
{
|
|
var tokenField = [CPTokenField new];
|
|
[tokenField setCompletionDelay:5.0];
|
|
[tokenField setTokenizingCharacterSet:[CPCharacterSet characterSetWithCharactersInString:@","]];
|
|
|
|
var archived = [CPKeyedArchiver archivedDataWithRootObject:tokenField],
|
|
unarchived = [CPKeyedUnarchiver unarchiveObjectWithData:archived];
|
|
|
|
[self assert:[unarchived completionDelay] equals:5.0];
|
|
[self assert:[unarchived tokenizingCharacterSet] equals:[CPCharacterSet characterSetWithCharactersInString:@","]];
|
|
}
|
|
|
|
@end |