@@ -101,27 +101,27 @@ describe("Element focus", () => {
101
101
describe ( "Textbox validation" , ( ) => {
102
102
function * RequiredInputValidationResponder ( el : HTMLInputElement ) {
103
103
yield listenTo ( el , [ "input" , "blur" , "focus" ] ) ;
104
- yield on ( "focus" , compound ( CheckingActive ) ) ;
105
- yield on ( "blur" , compound ( CheckingActive ) ) ;
106
- yield on ( "input" , compound ( CheckingValid ) ) ;
104
+ yield on ( "focus" , compound ( _CheckingActive ) ) ;
105
+ yield on ( "blur" , compound ( _CheckingActive ) ) ;
106
+ yield on ( "input" , compound ( _CheckingValid ) ) ;
107
107
108
108
function * Inactive ( ) { }
109
109
function * Active ( ) { }
110
- function * CheckingActive ( ) {
110
+ function * _CheckingActive ( ) {
111
111
yield cond ( el . ownerDocument . activeElement === el , Active ) ;
112
112
yield always ( Inactive ) ;
113
113
}
114
114
function * Valid ( ) { }
115
115
function * InvalidCannotBeEmpty ( ) { }
116
116
function * InvalidMustBeLowercase ( ) { }
117
- function * CheckingValid ( ) {
117
+ function * _CheckingValid ( ) {
118
118
yield cond ( el . value === '' , InvalidCannotBeEmpty ) ;
119
119
yield cond ( / ^ [ a - z ] + $ / . test ( el . value ) === false , InvalidMustBeLowercase ) ;
120
120
// yield cond(false)(/^[a-z]+$/.test(el.value), InvalidMustBeLowercase);
121
121
yield always ( Valid ) ;
122
122
}
123
123
124
- return CheckingActive ;
124
+ return _CheckingActive ;
125
125
}
126
126
127
127
it ( "listens when element receives and loses focus" , ( ) => {
0 commit comments