From 889e8d3b6edb295b931783f2fb052dd26e408dab Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Thu, 6 Oct 2011 00:36:13 +0100 Subject: [PATCH] Test automatic table bindings. --- Tests/AppKit/CPKeyValueBindingTest.j | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/AppKit/CPKeyValueBindingTest.j b/Tests/AppKit/CPKeyValueBindingTest.j index 5309651e7..9f4d8695e 100644 --- a/Tests/AppKit/CPKeyValueBindingTest.j +++ b/Tests/AppKit/CPKeyValueBindingTest.j @@ -166,6 +166,9 @@ [tableColumn bind:@"value" toObject:arrayController withKeyPath:@"arrangedObjects.valueA" options:nil]; + [self assertTrue:[[tableView infoForBinding:"content"] valueForKey:CPObservedObjectKey] === arrayController message:"when a column of a table is bound to an array controller a 'content' binding should automatically be made to the array controller"]; + [self assertTrue:[[tableView infoForBinding:"selectionIndexes"] valueForKey:CPObservedObjectKey] === arrayController message:"when a column of a table is bound to an array controller a 'selectionIndexes' binding should automatically be made to the array controller"]; + // Reset these if they were read during initialization. for (var i = 0; i < [content count]; i++) [content[i] setAccesses:0];