Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljungberg committed Feb 8, 2012
1 parent 66fcbe7 commit 8fdb872
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions Tests/AppKit/CPScrollViewTest.j
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,10 @@

- (void)testSetContentView
{
var scrollView = [[CPScrollView alloc] initWithFrame:CGRectMake(0.0, 0.0, 100.0, 100.0)];
var documentView = [[CPView alloc] initWithFrame:CGRectMake(0.0, 0.0, 400.0, 400.0)];

var replacementContentView = [[CPClipView alloc] initWithFrame:[scrollView _insetBounds]];
var replacementDocumentView = [[CPView alloc] initWithFrame:CGRectMake(0.0, 0.0, 400.0, 400.0)];
var scrollView = [[CPScrollView alloc] initWithFrame:CGRectMake(0.0, 0.0, 100.0, 100.0)],
documentView = [[CPView alloc] initWithFrame:CGRectMake(0.0, 0.0, 400.0, 400.0)],
replacementContentView = [[CPClipView alloc] initWithFrame:[scrollView _insetBounds]],
replacementDocumentView = [[CPView alloc] initWithFrame:CGRectMake(0.0, 0.0, 400.0, 400.0)];

[replacementContentView setDocumentView:replacementDocumentView];

Expand All @@ -200,4 +199,4 @@
[self assert:replacementDocumentView equals:[scrollView documentView] message:@"documentView was not replaced properly"];
}

@end
@end
4 changes: 2 additions & 2 deletions Tests/AppKit/CPTableViewTest.j
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
*/
- (void)testEditCell
{
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMake(0,0,200,150)
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMake(0, 0, 200, 150)
styleMask:CPWindowNotSizable];

[[theWindow contentView] addSubview:tableView];
Expand Down Expand Up @@ -149,4 +149,4 @@
return YES;
}

@end
@end

0 comments on commit 8fdb872

Please sign in to comment.