Skip to content

Commit ce44b6b

Browse files
committed
Merge commit 'daca82b14a10c4cc06fdc4352dedd7b245d016bb'
2 parents ebf0198 + daca82b commit ce44b6b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/+wt/+test/CheckboxList.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ function testSelectAll(testCase)
128128
testCase.choose(AllCheck);
129129

130130
% Verify new value
131-
testCase.verifyEqual([cbox.Value]', allTrue);
132131
testCase.verifyEqual(testCase.Widget.Value, allTrue);
132+
drawnow
133+
testCase.verifyEqual([cbox.Value]', allTrue);
133134

134135
% Verify callback fired
135136
testCase.verifyEqual(testCase.CallbackCount, 1);

test/+wt/+test/DatetimeSelector.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)