File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
E2ETest/ServerExecutionTests Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ static InputNumber()
21
21
// of it for us. We will only get asked to parse the T for nonempty inputs.
22
22
var targetType = Nullable . GetUnderlyingType ( typeof ( TValue ) ) ?? typeof ( TValue ) ;
23
23
if ( targetType == typeof ( int ) ||
24
+ targetType == typeof ( long ) ||
24
25
targetType == typeof ( float ) ||
25
26
targetType == typeof ( double ) ||
26
27
targetType == typeof ( decimal ) )
Original file line number Diff line number Diff line change @@ -174,6 +174,18 @@ public void CanSetCultureAndParseCultureInvariantNumbersAndDatesWithFormComponen
174
174
Browser . Equal ( 9000 . ToString ( cultureInfo ) , ( ) => display . Text ) ;
175
175
Browser . Equal ( 9000 . ToString ( CultureInfo . InvariantCulture ) , ( ) => input . GetAttribute ( "value" ) ) ;
176
176
177
+ // long
178
+ input = Browser . FindElement ( By . Id ( "inputnumber_long" ) ) ;
179
+ display = Browser . FindElement ( By . Id ( "inputnumber_long_value" ) ) ;
180
+ Browser . Equal ( 4200 . ToString ( cultureInfo ) , ( ) => display . Text ) ;
181
+ Browser . Equal ( 4200 . ToString ( CultureInfo . InvariantCulture ) , ( ) => input . GetAttribute ( "value" ) ) ;
182
+
183
+ input . Clear ( ) ;
184
+ input . SendKeys ( 90000000000 . ToString ( CultureInfo . InvariantCulture ) ) ;
185
+ input . SendKeys ( "\t " ) ;
186
+ Browser . Equal ( 90000000000 . ToString ( cultureInfo ) , ( ) => display . Text ) ;
187
+ Browser . Equal ( 90000000000 . ToString ( CultureInfo . InvariantCulture ) , ( ) => input . GetAttribute ( "value" ) ) ;
188
+
177
189
// decimal
178
190
input = Browser . FindElement ( By . Id ( "inputnumber_decimal" ) ) ;
179
191
display = Browser . FindElement ( By . Id ( "inputnumber_decimal_value" ) ) ;
Original file line number Diff line number Diff line change 62
62
int: <InputNumber id =" inputnumber_int" @bind-Value =" inputNumberInt" />
63
63
<span id =" inputnumber_int_value" >@inputNumberInt </span >
64
64
</div >
65
+ <div >
66
+ long: <InputNumber id =" inputnumber_long" @bind-Value =" inputNumberLong" />
67
+ <span id =" inputnumber_long_value" >@inputNumberLong </span >
68
+ </div >
65
69
<div >
66
70
decimal: <InputNumber id =" inputnumber_decimal" @bind-Value =" inputNumberDecimal" />
67
71
<span id =" inputnumber_decimal_value" >@inputNumberDecimal </span >
99
103
DateTimeOffset inputTypeDateDateTimeOffset = new DateTimeOffset (new DateTime (1985 , 3 , 4 ));
100
104
101
105
int inputNumberInt = 42 ;
106
+ long inputNumberLong = 4200 ;
102
107
decimal inputNumberDecimal = 4 . 2 m ;
103
108
104
109
DateTime inputDateDateTime = new DateTime (1985 , 3 , 4 );
You can’t perform that action at this time.
0 commit comments