@@ -76,6 +76,7 @@ function testRollOver(testCase)
7676 testCase .press(hourControl ," down" );
7777 actVal = testCase .Widget .Value ;
7878 testCase .verifyEqual(actVal , dt_0 - hours(1 ));
79+ drawnow
7980 testCase .verifyEqual(dateControl .Value , dt_0 - days(1 )); % datepicker strips the time
8081 testCase .verifyEqual(hourControl .Value , 11 );
8182 testCase .verifyEqual(minuteControl .Value , 0 );
@@ -87,6 +88,7 @@ function testRollOver(testCase)
8788 testCase .press(hourControl ," up" );
8889 actVal = testCase .Widget .Value ;
8990 testCase .verifyEqual(actVal , dt_0 + hours(1 ));
91+ drawnow
9092 testCase .verifyEqual(dateControl .Value , dt_0 );
9193 testCase .verifyEqual(hourControl .Value , 1 );
9294 testCase .verifyEqual(minuteControl .Value , 0 );
@@ -97,6 +99,7 @@ function testRollOver(testCase)
9799 testCase .press(secondControl ," down" );
98100 actVal = testCase .Widget .Value ;
99101 testCase .verifyEqual(actVal , dt_0 + hours(1 ) - seconds(1 ));
102+ drawnow
100103 testCase .verifyEqual(dateControl .Value , dt_0 );
101104 testCase .verifyEqual(hourControl .Value , 12 );
102105 testCase .verifyEqual(minuteControl .Value , 59 );
@@ -122,6 +125,7 @@ function testRollOver(testCase)
122125 testCase .press(minuteControl ," down" );
123126 actVal = testCase .Widget .Value ;
124127 testCase .verifyEqual(actVal , dt_12 - minutes(1 ));
128+ drawnow
125129 testCase .verifyEqual(dateControl .Value , dt_0 );
126130 testCase .verifyEqual(hourControl .Value , 11 );
127131 testCase .verifyEqual(minuteControl .Value , 59 );
0 commit comments