Skip to content

Commit

Permalink
Merge pull request #2419 from Dogild/cappuccino-test-launched
Browse files Browse the repository at this point in the history
Test: some manual tests were broken
  • Loading branch information
Dogild committed Feb 19, 2016
2 parents 662db00 + 6d305e4 commit 4f13df6
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 389 deletions.
5 changes: 3 additions & 2 deletions Tests/Manual/ArrayControllerRemovingFirstTest/AppController.j
Expand Up @@ -29,7 +29,7 @@
[arrayController setContent:items];

var label = [CPTextField labelWithTitle:@"Press buttons to see [Remove First By Object] fails while [Remove First By Index] succeeds"];
[label setFrameOrigin:CGPointMake(20, 20)];
[label setFrameOrigin:CGPointMake(20, 20)];
[contentView addSubview:label];

var field = [CPTextField textFieldWithStringValue:@"" placeholder:@"" width:100];
Expand Down Expand Up @@ -65,7 +65,8 @@

- (void)removeFirstByIndex:(id)sender
{
[arrayController removeObjectAtArrangedObjectIndex:0];
if ([[arrayController contentArray] count])
[arrayController removeObjectAtArrangedObjectIndex:0];
}

- (void)observeValueForKeyPath:(CPString)keyPath ofObject:(id)object change:(CPDictionary)change context:(id)context
Expand Down
2 changes: 1 addition & 1 deletion Tests/Manual/CPByteCountFormatter/Resources/MainMenu.cib

Large diffs are not rendered by default.

16 changes: 13 additions & 3 deletions Tests/Manual/CPCursor/AppController.j
Expand Up @@ -5,7 +5,7 @@
@import <AppKit/CPCursor.j>

@implementation CursorTester : CPView
{
{
CPCursor testCursor;
CPTextField label;
}
Expand All @@ -15,6 +15,7 @@
cursor:(CPCursor)aCursor
{
self = [super init];

if (self)
{
testCursor = aCursor;
Expand All @@ -26,7 +27,16 @@
anOrigin.y,
[label frame].size.width,
[label frame].size.height)];

var trackingArea = [[CPTrackingArea alloc] initWithRect:CGRectMakeZero()
options:CPTrackingMouseEnteredAndExited | CPTrackingActiveInKeyWindow | CPTrackingInVisibleRect
owner:self
userInfo:nil];

[self addTrackingArea:trackingArea];
;
}

return self;
}

Expand Down Expand Up @@ -57,7 +67,7 @@
yInc = 25,
imageCursorTester = [[CursorTester alloc] initWithText:@"Image cursor"
origin:CGPointMake(x, y)
cursor:[[CPCursor alloc] initWithImage:[[CPImage alloc] initWithContentsOfFile:[[CPBundle mainBundle] resourcePath] + @"spinner.gif"]
cursor:[[CPCursor alloc] initWithImage:[[CPImage alloc] initWithContentsOfFile:[[CPBundle mainBundle] resourcePath] + @"spinner.gif"]
hotSpot:CGPointMakeZero()]],
arrowCursorTester = [[CursorTester alloc] initWithText:@"Arrow cursor"
origin:CGPointMake(x, y+=yInc)
Expand Down Expand Up @@ -110,7 +120,7 @@
disappearingItemCursorTester = [[CursorTester alloc] initWithText:@"Disappearing item cursor"
origin:CGPointMake(x, y+=yInc)
cursor:[CPCursor disappearingItemCursor]];

[contentView addSubview:imageCursorTester];
[contentView addSubview:arrowCursorTester];
[contentView addSubview:crosshairCursorTester];
Expand Down
2 changes: 1 addition & 1 deletion Tests/Manual/CPDatePickerTest/Resources/MainMenu.cib

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Tests/Manual/CrossOriginTest/Resources/MainMenu.cib

Large diffs are not rendered by default.

File renamed without changes.

This file was deleted.

12 changes: 0 additions & 12 deletions Tests/Manual/Issue-1357-fix/Info.plist

This file was deleted.

93 changes: 0 additions & 93 deletions Tests/Manual/Issue-1357-fix/Jakefile

This file was deleted.

Binary file removed Tests/Manual/Issue-1357-fix/Resources/spinner.gif
Binary file not shown.
112 changes: 0 additions & 112 deletions Tests/Manual/Issue-1357-fix/index-debug.html

This file was deleted.

0 comments on commit 4f13df6

Please sign in to comment.