aboutsummaryrefslogtreecommitdiff
path: root/AppKit/GTMNSBezierPath+RoundRectTest.m
diff options
context:
space:
mode:
Diffstat (limited to 'AppKit/GTMNSBezierPath+RoundRectTest.m')
-rw-r--r--AppKit/GTMNSBezierPath+RoundRectTest.m14
1 files changed, 12 insertions, 2 deletions
diff --git a/AppKit/GTMNSBezierPath+RoundRectTest.m b/AppKit/GTMNSBezierPath+RoundRectTest.m
index 5bdf3a3..101460c 100644
--- a/AppKit/GTMNSBezierPath+RoundRectTest.m
+++ b/AppKit/GTMNSBezierPath+RoundRectTest.m
@@ -28,7 +28,7 @@
@implementation GTMNSBezierPath_RoundRectTest
- (void)testRoundRects {
- GTMAssertDrawingEqualToImageNamed(self, NSMakeSize(490, 430),
+ GTMAssertDrawingEqualToImageNamed(self, NSMakeSize(490, 500),
@"GTMNSBezierPath+RoundRectTest", nil, nil);
}
@@ -95,7 +95,17 @@
[roundRect stroke];
theRects[j].origin.y += 35.0;
}
- }
+ }
+
+ // Different radii
+ NSRect bigRect = NSMakeRect(50, 440, 200, 40);
+ NSBezierPath *roundRect = [NSBezierPath gtm_bezierPathWithRoundRect:bigRect
+ topLeftCornerRadius:0.0
+ topRightCornerRadius:5.0
+ bottomLeftCornerRadius:10.0
+ bottomRightCornerRadius:20.0];
+ [roundRect setLineWidth:5.0];
+ [roundRect stroke];
}