mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-30 03:48:49 +00:00
Add a missing import in CPButton, and a test to ensure you can create one on the command line.
This commit is contained in:
1 parent
d879b25458
commit
e759c5343b
2 files changed
+16
No files matched your search
@@ -24,6 +24,7 @@
|
||||
@import "CGGeometry.j"
|
||||
|
||||
@import "CPControl.j"
|
||||
@import "CPStringDrawing.j"
|
||||
|
||||
#include "CoreGraphics/CGGeometry.h"
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
@import <AppKit/CPButton.j>
|
||||
@import <AppKit/CPStringDrawing.j>
|
||||
|
||||
@implementation CPButtonTest : OJTestCase
|
||||
{
|
||||
}
|
||||
|
||||
- (void)testCanCreate
|
||||
{
|
||||
var button = [CPButton buttonWithTitle:"hello world"];
|
||||
[self assertTrue:!!button];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user