Skip to content

Commit d0af660

Browse files
committed
update BaseWidgetTest to undo some changes that were failing other tests
1 parent e779f74 commit d0af660

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

test/+wt/+test/BaseWidgetTest.m

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,15 @@ function verifySetProperty(testCase,propName,newValue,expValue)
109109
testCase.verifyWarningFree(fcn);
110110

111111
% Give a moment for update to run
112-
% drawnow
112+
drawnow
113113

114114
% Verify new property value
115-
% actualValue = testCase.Widget.(propName);
116-
% testCase.verifyEquality(actualValue, expValue);
117-
testCase.verifyPropertyValue(testCase.Widget, propName, expValue);
115+
actualValue = testCase.Widget.(propName);
116+
testCase.verifyEquality(actualValue, expValue);
117+
118+
% Tried to use this one, but the above works better because
119+
% strings can equate to enumeration strings, etc.
120+
% testCase.verifyPropertyValue(testCase.Widget, propName, expValue);
118121

119122
end %function
120123

@@ -147,13 +150,13 @@ function verifyTypeAction(testCase,component,newValue,propName,expValue)
147150
testCase.type(component, newValue);
148151

149152
% Verify new property value
150-
% actualValue = testCase.Widget.(propName);
151-
% testCase.verifyEquality(actualValue, expValue);
153+
actualValue = testCase.Widget.(propName);
154+
testCase.verifyEquality(actualValue, expValue);
152155

153-
testCase.verifyPropertyValue(component, propName, expValue);
156+
% Tried to use this one, but the above works better because
157+
% strings can equate to enumeration strings, etc.
158+
% testCase.verifyPropertyValue(component, propName, expValue);
154159

155-
156-
157160
end %function
158161

159162

0 commit comments

Comments
 (0)