Skip to content

Commit

Permalink
Refs #1676. Whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljungberg committed Sep 24, 2012
1 parent 566cd6c commit 59ad849
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion AppKit/CPTableView.j
Expand Up @@ -3381,7 +3381,7 @@ Your delegate can implement this method to avoid subclassing the tableview to ad
{
var row = rowArray[rowIndex],
dataView = dataViewsForTableColumn[row];

[dataView setFrame:[self frameOfDataViewAtColumn:column row:row]];
}
}
Expand Down
4 changes: 2 additions & 2 deletions Foundation/CPNumberFormatter.j
Expand Up @@ -94,7 +94,7 @@ CPNumberFormatterRoundHalfUp = CPRoundPlain;
{
number *= 100.0;
}

var dcmn = [number isKindOfClass:CPDecimalNumber] ? number : [[CPDecimalNumber alloc] _initWithJSNumber:number];

// TODO Add locale support.
Expand Down Expand Up @@ -139,7 +139,7 @@ CPNumberFormatterRoundHalfUp = CPRoundPlain;
else
string = _currencyCode + string;
}

if (_numberStyle == CPNumberFormatterPercentStyle)
{
string += "%";
Expand Down
20 changes: 10 additions & 10 deletions Tests/AppKit/CPTableViewTest.j
Expand Up @@ -273,32 +273,32 @@
tableColumn1 = [[CPTableColumn alloc] initWithIdentifier:@"A"],
tableColumn2 = [[CPTableColumn alloc] initWithIdentifier:@"B"],
delegate = [ContentBindingTableDelegate new];

[delegate setTester:self];
[table setDelegate:delegate];

[delegate setTableEntries:[[@"A1", @"B1"], [@"A2", @"B2"], [@"A3", @"B3"]]];
[table bind:@"content" toObject:delegate withKeyPath:@"tableEntries" options:nil];

[[theWindow contentView] addSubview:table];

[tableColumn1 setHidden:YES];

[tableColumn1 setWidth:50.0];
[tableColumn2 setWidth:100.0];

[table addTableColumn:tableColumn1];
[table addTableColumn:tableColumn2];

[table reloadData];

[[CPRunLoop currentRunLoop] limitDateForMode:CPDefaultRunLoopMode];

[self assertTrue:[table bounds].size.width > 100 && [table bounds].size.width < 200];

[tableColumn1 setHidden:NO];
[tableColumn1 setWidth:100.0];

[self assertTrue:[table bounds].size.width >= 200];
}

Expand Down
2 changes: 1 addition & 1 deletion Tests/Foundation/CPNumberFormatterTest.j
Expand Up @@ -151,7 +151,7 @@
[self assert:@"1%" equals:[numberFormatter stringFromNumber:[CPDecimalNumber decimalNumberWithString:@"0.01"]]];
[self assert:@"100%" equals:[numberFormatter stringFromNumber:[CPDecimalNumber decimalNumberWithString:@"1.0"]]];
[self assert:@"150%" equals:[numberFormatter stringFromNumber:[CPDecimalNumber decimalNumberWithString:@"1.5"]]];

[numberFormatter setMinimumFractionDigits:1];
[numberFormatter setMaximumFractionDigits:1];

Expand Down

0 comments on commit 59ad849

Please sign in to comment.