mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-27 05:57:04 +00:00
18 lines
403 B
Plaintext
18 lines
403 B
Plaintext
@import <AppKit/CPPasteboard.j>
|
|
|
|
@import <OJUnit/OJTestCase.j>
|
|
|
|
@implementation CPPasteboardTest : OJTestCase
|
|
{
|
|
}
|
|
|
|
- (void)testSetString_forType_
|
|
{
|
|
var pboard = [CPPasteboard generalPasteboard];
|
|
[pboard declareTypes:@[CPStringPboardType] owner:nil];
|
|
[pboard setString:@"hello" forType:CPStringPboardType];
|
|
[self assert:@"hello" equals:[pboard stringForType:CPStringPboardType]];
|
|
}
|
|
|
|
@end
|