From 0683b46239be4d1c904483c407f53d9c8dc9cc84 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Fri, 13 Aug 2010 14:18:25 -0400 Subject: [PATCH] Since issue #795 has not been decided on yet, make CPArrayControllerTest pass without those changes at this time. --- Tests/AppKit/CPArrayControllerTest.j | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Tests/AppKit/CPArrayControllerTest.j b/Tests/AppKit/CPArrayControllerTest.j index 2029c51ed..abdb8719c 100644 --- a/Tests/AppKit/CPArrayControllerTest.j +++ b/Tests/AppKit/CPArrayControllerTest.j @@ -12,7 +12,8 @@ [_contentArray addObject:[Person personWithName:@"Ross" age:30]]; [_contentArray addObject:[Person personWithName:@"Tom" age:15]]; - _arrayController = [[CPArrayController alloc] initWithContent:[self contentArray]]; + // Copy the array since we'll reuse the original array later. Also see issue #795. + _arrayController = [[CPArrayController alloc] initWithContent:[[self contentArray] copy]]; } - (void)testInitWithContent @@ -26,7 +27,8 @@ otherContent = [@"5", @"6"]; [[self arrayController] setContent:otherContent]; - [self assertFalse:otherContent === [[self arrayController] contentArray] message:@"array controller should copy it's content"]; + // This has not been decided on yet. See Issue #795. + // [self assertFalse:otherContent === [[self arrayController] contentArray] message:@"array controller should copy it's content"]; [self assert:otherContent equals:[[self arrayController] contentArray]]; [self assert:[_CPObservableArray class] equals:[[[self arrayController] arrangedObjects] class]]; }