Add a missing import in CPButton, and a test to ensure you can create one on the command line.

This commit is contained in:
Ross Boucher committed 2010-02-22 11:07:11 -08:00
1 parent d879b25458
commit e759c5343b
2 files changed
+16

No files matched your search

+1
View File
@@ -24,6 +24,7 @@
@import "CGGeometry.j"
@import "CPControl.j"
@import "CPStringDrawing.j"
#include "CoreGraphics/CGGeometry.h"
+15
View File
@@ -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