mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-01 18:58:22 +00:00
Unit test exposing a new bug: setting a binding on a text field causes it to lose its placeholder string.
This commit is contained in:
1 parent
2e22a0d5e8
commit
16e9fce5b5
1 file changed
+3
@@ -195,6 +195,9 @@
|
||||
var textField = [[CPTextField alloc] initWithFrame:CGRectMakeZero()];
|
||||
[textField setPlaceholderString:@"cheese"];
|
||||
|
||||
// Establish a random binding.
|
||||
[textField bind:@"hidden" toObject:self withKeyPath:@"FOO" options:nil];
|
||||
[self assert:@"cheese" equals:[textField placeholderString] message:"placeholder should not be cleared when a binding is established"];
|
||||
|
||||
content = [
|
||||
[BindingTester testerWithCheese:@"yellow"],
|
||||
|
||||
Reference in new issue
Block a user