mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-21 22:19:26 +00:00
Formatting recent changes.
This commit is contained in:
1 parent
ed307adb22
commit
d3c4105429
2 files changed
+10
-10
No files matched your search
@@ -317,16 +317,16 @@
|
||||
|
||||
- (void)testMultipleBindingsToArrayControllerSelection
|
||||
{
|
||||
var control1 = [[TextField alloc] init];
|
||||
var control2 = [[TextField alloc] init];
|
||||
var control1 = [[TextField alloc] init],
|
||||
control2 = [[TextField alloc] init],
|
||||
|
||||
var cheese1 = [BindingTester testerWithCheese:@"roblochon"],
|
||||
cheese2 = [BindingTester testerWithCheese:@"brie"];
|
||||
cheese1 = [BindingTester testerWithCheese:@"roblochon"],
|
||||
cheese2 = [BindingTester testerWithCheese:@"brie"],
|
||||
|
||||
var ac = [[CPArrayController alloc] initWithContent:@[cheese1, cheese2]];
|
||||
var oc = [[CPObjectController alloc] init];
|
||||
ac = [[CPArrayController alloc] initWithContent:@[cheese1, cheese2]],
|
||||
oc = [[CPObjectController alloc] init];
|
||||
|
||||
// This tests fails only if multiple controls are binded BEFORE the object controller
|
||||
// This tests fails only if multiple controls are bound BEFORE the object controller
|
||||
[control1 bind:CPValueBinding toObject:oc withKeyPath:@"selection.cheese" options:nil];
|
||||
[control2 bind:CPValueBinding toObject:oc withKeyPath:@"selection.cheese" options:nil];
|
||||
[oc bind:CPContentBinding toObject:ac withKeyPath:@"selection" options:nil];
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
- (void)setUp
|
||||
{
|
||||
_theWindow = [[CPWindow alloc] initWithContentRect:CGRectMake(0.0, 0.0, 1024.0, 768.0)
|
||||
styleMask:CPWindowNotSizable];
|
||||
styleMask:CPWindowNotSizable];
|
||||
|
||||
_tokenField = [CPTokenField new];
|
||||
_delegate = [TestDelegateTokenField new];
|
||||
@@ -69,7 +69,7 @@
|
||||
- (void)testObjectValueWithArrayOfStrings
|
||||
{
|
||||
[_tokenField setObjectValue:[@"Alexandre", @"Antoine"]];
|
||||
[self assert:[_tokenField objectValue] equals:[@"Alexandre",@"Antoine"]];
|
||||
[self assert:[_tokenField objectValue] equals:[@"Alexandre", @"Antoine"]];
|
||||
}
|
||||
|
||||
- (void)testStringValueWithArrayOfStrings
|
||||
@@ -92,7 +92,7 @@
|
||||
|
||||
@implementation TestDelegateTokenField : CPObject <CPTokenFieldDelegate>
|
||||
{
|
||||
CPArray _representedObjects @accessors(property=representedObjects);
|
||||
CPArray _representedObjects @accessors(property=representedObjects);
|
||||
}
|
||||
|
||||
- (id)init
|
||||
|
||||
Reference in new issue
Block a user