diff options
Diffstat (limited to 'AppKit/GTMNSBezierPath+CGPathTest.m')
-rw-r--r-- | AppKit/GTMNSBezierPath+CGPathTest.m | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/AppKit/GTMNSBezierPath+CGPathTest.m b/AppKit/GTMNSBezierPath+CGPathTest.m index eb86353..3c99a19 100644 --- a/AppKit/GTMNSBezierPath+CGPathTest.m +++ b/AppKit/GTMNSBezierPath+CGPathTest.m @@ -28,7 +28,7 @@ @implementation GTMNSBezierPath_CGPathTest -- (void)testCreateCGPath { +- (void)testCGPath { GTMAssertDrawingEqualToImageNamed(self, NSMakeSize(100, 100), @"GTMNSBezierPath+CGPathTest", @@ -62,7 +62,7 @@ // test close [thePath closePath]; - CGPathRef cgPath = [thePath gtm_createCGPath]; + CGPathRef cgPath = [thePath gtm_CGPath]; STAssertNotNULL(cgPath, @"Nil CGPath"); CGContextRef cgContext = [[NSGraphicsContext currentContext] graphicsPort]; @@ -70,7 +70,6 @@ CGContextAddPath(cgContext, cgPath); CGContextStrokePath(cgContext); - CGPathRelease(cgPath); } @end |