mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-08 11:47:14 +00:00
30 lines
510 B
Plaintext
30 lines
510 B
Plaintext
|
|
@import <AppKit/CPDatePicker.j>
|
|
@import <AppKit/CPApplication.j>
|
|
@import <AppKit/CPText.j>
|
|
|
|
[CPApplication sharedApplication];
|
|
|
|
@implementation CPDatePickerTest : OJTestCase
|
|
{
|
|
CPDatePicker datePicker;
|
|
}
|
|
|
|
- (void)setUp
|
|
{
|
|
datePicker = [[CPDatePicker alloc] initWithFrame:CGRectMake(200, 28, 0, 0)];
|
|
}
|
|
|
|
- (void)testCanCreate
|
|
{
|
|
[self assertTrue:!!datePicker];
|
|
}
|
|
|
|
- (void)testLayout
|
|
{
|
|
[datePicker setNeedsLayout:YES];
|
|
[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];
|
|
}
|
|
|
|
@end
|