Skip to content

Commit e3e1230

Browse files
committed
Add testcase for ButtonLabel
1 parent e51a29b commit e3e1230

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/+wt/+test/FileSelector.m

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,24 @@ function testRootDirectoryAndHistory(testCase)
166166

167167
end %function
168168

169+
function testButtonLabel(testCase)
170+
171+
% Get the edit field
172+
buttonControl = testCase.Widget.ButtonControl;
173+
174+
% Set the value
175+
newValue = "Select File";
176+
testCase.verifySetProperty("ButtonLabel", newValue);
177+
drawnow
178+
testCase.verifyEqual(string(buttonControl.Text), newValue);
179+
180+
% Set the value
181+
newValue = "Browse";
182+
testCase.verifySetProperty("ButtonLabel", newValue);
183+
drawnow
184+
testCase.verifyEqual(string(buttonControl.Text), newValue);
185+
186+
end %function
169187

170188
% function testButton(testCase)
171189
%

0 commit comments

Comments
 (0)