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:
Alexander Ljungberg committed 2010-10-02 14:38:34 -04:00
1 parent 2e22a0d5e8
commit 16e9fce5b5
1 file changed
+3
+3
View File
@@ -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"],