From 4b8592d9377ba4d7ca98351ba208c8f76ef73df5 Mon Sep 17 00:00:00 2001 From: Robyn Jackey <15696076+rjackey@users.noreply.github.com> Date: Fri, 29 Apr 2022 10:20:26 -0400 Subject: [PATCH] Added some drawnow statements to ensure graphics update occur before verifying positioning. All tests pass on Bappdes. Fixes #30 --- test/+wt/+test/Toolbar.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/+wt/+test/Toolbar.m b/test/+wt/+test/Toolbar.m index b0b94abe..a9044128 100644 --- a/test/+wt/+test/Toolbar.m +++ b/test/+wt/+test/Toolbar.m @@ -80,6 +80,7 @@ function onButtonPushed(testCase, ~) fcn = @()addButton(section, icon, name); button = testCase.verifyWarningFree(fcn); + drawnow % Verify the buttons changed newButton = section.Component(end); @@ -103,6 +104,7 @@ function onButtonPushed(testCase, ~) fcn = @()addStateButton(section, icon, name); button = testCase.verifyWarningFree(fcn); + drawnow % Verify the buttons changed newButton = section.Component(end); @@ -124,6 +126,7 @@ function onButtonPushed(testCase, ~) fcn = @()addVerticalSection(section); section = testCase.verifyWarningFree(fcn); + drawnow end %function @@ -141,6 +144,7 @@ function onButtonPushed(testCase, ~) section(sIdx).addButton("", string(bIdx)); end end + drawnow % Attach the sections to the toolbar testCase.verifySetProperty("Section", section)