From 437142ed7bc49cd4356bdb992e19c24f170e963e Mon Sep 17 00:00:00 2001 From: daboe01 Date: Sat, 28 Jun 2014 17:03:00 +0200 Subject: [PATCH] manual test --- Tests/Manual/CPTextField/AppController.j | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Tests/Manual/CPTextField/AppController.j b/Tests/Manual/CPTextField/AppController.j index 52cbb591b..e94b1be2a 100644 --- a/Tests/Manual/CPTextField/AppController.j +++ b/Tests/Manual/CPTextField/AppController.j @@ -37,7 +37,8 @@ [contentView addSubview:textField]; var shadowLabel = [CPTextField labelWithTitle:@"This text should have a shadow."], - championOfLightLabel = [CPTextField labelWithTitle:@"This text should have no shadow."]; + championOfLightLabel = [CPTextField labelWithTitle:@"This text should have no shadow."], + redLabel = [CPTextField labelWithTitle:@"This text should be white on a red background."]; [shadowLabel setTextColor:[CPColor blackColor]]; [shadowLabel setTextShadowOffset:CGSizeMake(0, 1)]; @@ -47,11 +48,16 @@ [championOfLightLabel setTextShadowOffset:CGSizeMake(0, 1)]; [championOfLightLabel setTextShadowColor:[CPColor clearColor]]; + [redLabel setTextColor:[CPColor whiteColor]]; + [redLabel setTextFieldBackgroundColor:[CPColor redColor]]; + [shadowLabel setFrame:CGRectMake(15, CGRectGetMaxY([textField frame]) + 10, 300, 18)]; [championOfLightLabel setFrame:CGRectMake(15, CGRectGetMaxY([shadowLabel frame]) + 2, 300, 18)]; + [redLabel setFrame:CGRectMake(15, CGRectGetMaxY([championOfLightLabel frame]) + 10, 300, 18)]; [contentView addSubview:shadowLabel]; [contentView addSubview:championOfLightLabel]; + [contentView addSubview:redLabel]; var jumpLabel = [CPTextField labelWithTitle:@"The text of these text fields should not move ('jump') when a field becomes the first responder. Labels on the right should replicate the input."];