mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 08:32:58 +00:00
Test: - CPPasteboard setString:forType: and stringForType:.
This commit is contained in:
1 parent
3fb0dd725a
commit
f2d9ef7720
1 file changed
+17
@@ -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