@@ -27,11 +27,11 @@ final class UITextViewTests : RxTest {
27
27
let textView = UITextViewSubclass2 ( frame: CGRect . zero)
28
28
29
29
textView. text = " Text1 "
30
- textView. isSettedText = false
30
+ textView. didSetText = false
31
31
textView. rx. text. on ( . next( " Text1 " ) )
32
- XCTAssertTrue ( !textView. isSettedText )
32
+ XCTAssertTrue ( !textView. didSetText )
33
33
textView. rx. text. on ( . next( " Text2 " ) )
34
- XCTAssertTrue ( textView. isSettedText )
34
+ XCTAssertTrue ( textView. didSetText )
35
35
}
36
36
37
37
func testSettingTextDoesntClearMarkedAttributtedText( ) {
@@ -41,13 +41,13 @@ final class UITextViewTests : RxTest {
41
41
let test2AttributedString = " Test2 " . textViewAttributedString
42
42
43
43
textView. attributedText = testAttributedString
44
- textView. isSettedAttributedText = false
44
+ textView. didSetAttributedText = false
45
45
textView. rx. attributedText. on ( . next( testAttributedString) )
46
- XCTAssertTrue ( !textView. isSettedAttributedText )
46
+ XCTAssertTrue ( !textView. didSetAttributedText )
47
47
textView. rx. attributedText. on ( . next( testAttributedString) )
48
- XCTAssertTrue ( !textView. isSettedAttributedText )
48
+ XCTAssertTrue ( !textView. didSetAttributedText )
49
49
textView. rx. attributedText. on ( . next( test2AttributedString) )
50
- XCTAssertTrue ( textView. isSettedAttributedText )
50
+ XCTAssertTrue ( textView. didSetAttributedText )
51
51
}
52
52
53
53
func testDidBeginEditing( ) {
@@ -140,15 +140,15 @@ private extension String {
140
140
}
141
141
142
142
final class UITextViewSubclass2 : UITextView {
143
- var isSettedText = false
144
- var isSettedAttributedText = false
143
+ var didSetText = false
144
+ var didSetAttributedText = false
145
145
146
146
override var text : String ? {
147
147
get {
148
148
return super. text
149
149
}
150
150
set {
151
- isSettedText = true
151
+ didSetText = true
152
152
super. text = newValue
153
153
}
154
154
}
@@ -158,7 +158,7 @@ final class UITextViewSubclass2 : UITextView {
158
158
return super. attributedText
159
159
}
160
160
set {
161
- isSettedAttributedText = true
161
+ didSetAttributedText = true
162
162
super. attributedText = newValue
163
163
}
164
164
}
0 commit comments