From e759c5343bf75763c9b9d5073a05c1cfa96deaaa Mon Sep 17 00:00:00 2001 From: Ross Boucher Date: Mon, 22 Feb 2010 11:06:16 -0800 Subject: [PATCH] Add a missing import in CPButton, and a test to ensure you can create one on the command line. --- AppKit/CPButton.j | 1 + Tests/AppKit/CPButtonTest.j | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 Tests/AppKit/CPButtonTest.j diff --git a/AppKit/CPButton.j b/AppKit/CPButton.j index a4852ce2a..0f1f5217a 100644 --- a/AppKit/CPButton.j +++ b/AppKit/CPButton.j @@ -24,6 +24,7 @@ @import "CGGeometry.j" @import "CPControl.j" +@import "CPStringDrawing.j" #include "CoreGraphics/CGGeometry.h" diff --git a/Tests/AppKit/CPButtonTest.j b/Tests/AppKit/CPButtonTest.j new file mode 100644 index 000000000..030de6214 --- /dev/null +++ b/Tests/AppKit/CPButtonTest.j @@ -0,0 +1,15 @@ + +@import +@import + +@implementation CPButtonTest : OJTestCase +{ +} + +- (void)testCanCreate +{ + var button = [CPButton buttonWithTitle:"hello world"]; + [self assertTrue:!!button]; +} + +@end