Test: some manual tests were broken

This PR fixes the manual tests. We can no launch every manual tests of Cappuccino...
This commit is contained in:
Alexandre Wilhelm
2016-02-13 11:36:42 -08:00
parent 662db009de
commit 6d305e4a84
21 changed files with 42 additions and 389 deletions
@@ -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];
@@ -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