File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
apps/automated/src/ui/text-field Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,32 @@ export var testSetKeyboardTypeNumberAndSecure = function () {
339339 } ) ;
340340} ;
341341
342+ export var testSetSecureAndKeyboardTypeDecimal = function ( ) {
343+ helper . buildUIAndRunTest ( _createTextFieldFunc ( ) , function ( views : Array < View > ) {
344+ var textField = < TextField > views [ 0 ] ;
345+
346+ textField . secure = true ;
347+ textField . keyboardType = 'decimal' ;
348+
349+ var expectedValue = true ;
350+ var actualValue = getNativeSecure ( textField ) ;
351+ TKUnit . assert ( actualValue === expectedValue , 'Actual: ' + actualValue + '; Expected: ' + expectedValue ) ;
352+ } ) ;
353+ } ;
354+
355+ export var testSetKeyboardTypeDecimalAndSecure = function ( ) {
356+ helper . buildUIAndRunTest ( _createTextFieldFunc ( ) , function ( views : Array < View > ) {
357+ var textField = < TextField > views [ 0 ] ;
358+
359+ textField . keyboardType = 'decimal' ;
360+ textField . secure = true ;
361+
362+ var expectedValue = true ;
363+ var actualValue = getNativeSecure ( textField ) ;
364+ TKUnit . assert ( actualValue === expectedValue , 'Actual: ' + actualValue + '; Expected: ' + expectedValue ) ;
365+ } ) ;
366+ } ;
367+
342368export var testBindSecureDirectlyToModel = function ( ) {
343369 helper . buildUIAndRunTest ( _createTextFieldFunc ( ) , function ( views : Array < View > ) {
344370 var textField = < TextField > views [ 0 ] ;
You can’t perform that action at this time.
0 commit comments