File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,20 @@ pub fn spawn_test() {
96
96
}
97
97
Err ( e) => log:: error!( "couldn't get input: {:?}" , e) ,
98
98
}
99
+
100
+ // 6. human interaction-enabled slider
101
+ log:: info!( "testing human interaction-enabled slider" ) ;
102
+ let result = modals. slider (
103
+ "Human interaction-enabled slider!" ,
104
+ 0 ,
105
+ 100 ,
106
+ 50 ,
107
+ ) . expect ( "slider test failed" ) ;
108
+
109
+ modals. show_notification ( & format ! ( "Slider value: {}" , result) , None )
110
+ . expect ( "cannot show slider result notification" ) ;
111
+
112
+ log:: info!( "slider test done" ) ;
99
113
}
100
114
} ) ;
101
115
@@ -165,6 +179,9 @@ pub fn spawn_test() {
165
179
modals. show_image ( bm) . expect ( "show image modal failed" ) ;
166
180
log:: info!( "image modal test done" ) ;
167
181
}
182
+
183
+ // 6. test that human-interactable slider modal
184
+ log:: info!( "testing human interaction-enabled modal" ) ;
168
185
}
169
186
} ) ;
170
187
}
You can’t perform that action at this time.
0 commit comments