mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
Test: - CPPasteboard setString:forType: and stringForType:.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user