Skip to content
Browse files

Refs #1412, #1413. Manual test for the last two fixes.

  • Loading branch information...
1 parent 9367566 commit 052c07f3e380874eead1e35ff579aa96d014d5a6 @aljungberg aljungberg committed Dec 6, 2011
Showing with 17 additions and 0 deletions.
  1. +17 −0 Tests/Manual/CPTextField/AppController.j
View
17 Tests/Manual/CPTextField/AppController.j
@@ -35,6 +35,23 @@
[contentView addSubview:textField];
+ var shadowLabel = [CPTextField labelWithTitle:@"This text should have a shadow."],
+ championOfLightLabel = [CPTextField labelWithTitle:@"This text should have no shadow."];
+
+ [shadowLabel setTextColor:[CPColor blackColor]];
+ [shadowLabel setTextShadowOffset:CGSizeMake(0, 1)];
+ [shadowLabel setTextShadowColor:[CPColor colorWithCSSString:@"rgba(0, 0, 0, 0.5)"]];
+
+ [championOfLightLabel setTextColor:[CPColor blackColor]];
+ [championOfLightLabel setTextShadowOffset:CGSizeMake(0, 1)];
+ [championOfLightLabel setTextShadowColor:[CPColor clearColor]];
+
+ [shadowLabel setFrame:CGRectMake(15, CGRectGetMaxY([textField frame]) + 10, 300, 18)];
+ [championOfLightLabel setFrame:CGRectMake(15, CGRectGetMaxY([shadowLabel frame]) + 2, 300, 18)];
+
+ [contentView addSubview:shadowLabel];
+ [contentView addSubview:championOfLightLabel];
+
[theWindow orderFront:self];
aWindow = [[CPWindow alloc] initWithContentRect:CGRectMake(150, 300, 400, 150) styleMask:CPTitledWindowMask | CPClosableWindowMask | CPDocModalWindowMask];

0 comments on commit 052c07f

Please sign in to comment.
Something went wrong with that request. Please try again.