Skip to content

Commit c61d05e

Browse files
committed
Update unit test. This and prior commits fixes #6 #9
1 parent d383b0d commit c61d05e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/+wt/+test/ListSelectorTwoPane.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ function testButtonFunctions(testCase)
253253
% Move items up
254254
testCase.press(button(3))
255255

256+
% Give a moment for update to run
257+
drawnow
258+
256259
% Verify new order
257260
newIdx = [2 3 1 4 5];
258261
testCase.verifyEqual(w.Value, testCase.ItemNames(newIdx));
@@ -264,6 +267,9 @@ function testButtonFunctions(testCase)
264267
% Move items down
265268
testCase.press(button(4))
266269

270+
% Give a moment for update to run
271+
drawnow
272+
267273
% Verify new order
268274
newIdx = 1:5;
269275
testCase.verifyEqual(w.Value, testCase.ItemNames(newIdx));
@@ -275,6 +281,9 @@ function testButtonFunctions(testCase)
275281
% Delete items
276282
testCase.press(button(2))
277283

284+
% Give a moment for update to run
285+
drawnow
286+
278287
% Verify new order
279288
newIdx = [1 4 5];
280289
testCase.verifyEqual(w.Value, testCase.ItemNames(newIdx));

0 commit comments

Comments
 (0)