From 48be680fde8ea0c996257b44f728e53a8db127ce Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Thu, 9 May 2013 11:31:51 -0700 Subject: [PATCH] Test: clean up and fix minor errors. --- .../Manual/TableTest/GroupRowTest/AppController.j | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Tests/Manual/TableTest/GroupRowTest/AppController.j b/Tests/Manual/TableTest/GroupRowTest/AppController.j index 31a3e565e..28a2111ca 100644 --- a/Tests/Manual/TableTest/GroupRowTest/AppController.j +++ b/Tests/Manual/TableTest/GroupRowTest/AppController.j @@ -11,14 +11,15 @@ @implementation AppController : CPObject { + CPImage iconImage; } - (void)applicationDidFinishLaunching:(CPNotification)aNotification { var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero() styleMask:CPBorderlessBridgeWindowMask], - contentView = [theWindow contentView]; + contentView = [theWindow contentView], - tableView = [[CPTableView alloc] initWithFrame:CGRectMake(0.0, 0.0, 400.0, 400.0)]; + tableView = [[CPTableView alloc] initWithFrame:CGRectMake(0.0, 0.0, 400.0, 400.0)]; [tableView setAllowsMultipleSelection:YES]; [tableView setAllowsColumnSelection:YES]; @@ -28,7 +29,7 @@ [tableView setDelegate:self]; [tableView setDataSource:self]; - var iconView = [[CPImageView alloc] initWithFrame:CGRectMake(16,16,0,0)]; + var iconView = [[CPImageView alloc] initWithFrame:CGRectMake(16, 16, 0, 0)]; [iconView setImageScaling:CPImageScaleNone]; var iconColumn = [[CPTableColumn alloc] initWithIdentifier:"icons"]; [iconColumn setWidth:32.0]; @@ -36,7 +37,7 @@ [iconColumn setDataView:iconView]; [tableView addTableColumn:iconColumn]; - iconImage = [[CPImage alloc] initWithContentsOfFile:"http://cappuccino-project.org/images/favicon.png" size:CGSizeMake(16,16)]; + iconImage = [[CPImage alloc] initWithContentsOfFile:"http://www.cappuccino-project.org/img/favicon.ico" size:CGSizeMake(16, 16)]; for (var i = 1; i <= 5; i++) @@ -68,7 +69,7 @@ [tableView setDelegate:self]; [tableView setDataSource:self]; - var iconView = [[CPImageView alloc] initWithFrame:CGRectMake(16,16,0,0)]; + var iconView = [[CPImageView alloc] initWithFrame:CGRectMake(16, 16, 0, 0)]; [iconView setImageScaling:CPImageScaleNone]; var iconColumn = [[CPTableColumn alloc] initWithIdentifier:"icons"]; [iconColumn setWidth:32.0]; @@ -76,9 +77,6 @@ [iconColumn setDataView:iconView]; [tableView addTableColumn:iconColumn]; - iconImage = [[CPImage alloc] initWithContentsOfFile:"http://cappuccino-project.org/images/favicon.png" size:CGSizeMake(16,16)]; - - for (var i = 1; i <= 5; i++) { var column = [[CPTableColumn alloc] initWithIdentifier:String(i)];